Lines Matching refs:path
30 write_log_file(os.path.join(REPORT_DIR, LOG_FILE), log_str)
38 def traverse_dir(path):
40 for file in os.listdir(path):
41 file_path = os.path.join(path, file)
42 if os.path.isdir(file_path):
45 dir_name = os.path.dirname(file_path)
69 def clear_folder_shutil(path):
70 if os.path.exists(path):
71 shutil.rmtree(path)
72 os.mkdir(path)
75 def remove_dir(path):
76 if os.path.exists(path):
77 shutil.rmtree(path)
81 if os.path.exists(file):
85 def mkdir(path):
86 if not os.path.exists(path):
87 os.makedirs(path)
122 dir_path = os.path.join(CUR_FILE_DIR, DEFAULT_TESTCASES_DIR, case_dir_name)
129 kraken_case_path = os.path.join(CUR_FILE_DIR, DEFAULT_TESTCASES_DIR, SUNSPIDER)
132 tests_dir_path = os.path.join(dir_path, KRAKENBENCHMARK_CASE_PATH, KRAKEN_CASE_PATH)
135 tests_dir_path = os.path.join(dir_path, KRAKENBENCHMARK_CASE_PATH, SUNSPIDER_CASE_PATH)
151 del_file_paths.append(os.path.join(dir_path, file))
153 case_path = os.path.join(dir_path, file)
155 if os.path.exists(case_data):
162 return os.path.join(dir_path, file)
164 need_case_path = os.path.join(tests_dir_path, file)
166 need_case_data_path = os.path.join(tests_dir_path, case_data_file)
167 if os.path.exists(need_case_data_path):
177 if os.path.isdir(file_path):