Lines Matching refs:os
13 import os
33 if not os.path.isfile(zip_file):
37 if not os.path.isdir(extract_dir):
38 os.mkdir(extract_dir)
49 if not os.path.isfile(os.path.join(extract_dir, os.path.basename(file_name))):
83 img_path = os.path.join(dest_dir, "resource.img")
84 if not os.path.exists(img_path):
105 if not os.path.isfile(file):
110 if os.path.exists(backup_file):
111 os.remove(backup_file)
114 os.rename(file, backup_file)
120 if os.path.isfile(file):
121 os.remove(file)