def check_pack_directory_exists(pack):
 packs_base_paths = get_packs_base_paths()
 for base_dir in packs_base_paths:
  pack_path = os.path.join(base_dir, pack)
  if os.path.exists(pack_path):
   return True
 return False

def check_pack_directory_exists ( pack ) : packs_base_paths = get_packs_base_paths ( ) for base_dir in packs_base_paths : pack_path = os . path . join ( base_dir , pack ) if os . path . exists ( pack_path ) : return True return False
check if a provided pack exists in one of the pack paths .