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

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