gistlib
main.pyimport os folder_names = ['valid', 'train'] label_cache = 'label.cache' for folder_name in folder_names: folder_path = os.path.join(folder_name, label_cache) if os.path.exists(folder_path): os.remove(folder_path) 231 chars10 lines
import os folder_names = ['valid', 'train'] label_cache = 'label.cache' for folder_name in folder_names: folder_path = os.path.join(folder_name, label_cache) if os.path.exists(folder_path): os.remove(folder_path)
gistlibby LogSnag