Lines Matching refs:os
8 import os
9 import os.path
18 _script_path = os.path.realpath(__file__)
19 _build_dir = os.path.dirname(_script_path)
20 _base_dir = os.path.normpath(_build_dir + "/..")
27 _extension_api_dir = os.path.normpath(_base_dir + "/../api")
41 sys.path.append(os.path.normpath(_base_dir +
65 if (os.path.isfile(input_file)):
67 os.remove(input_file)
108 os.remove(input_file)
120 chrome_dir = os.path.normpath(_base_dir + "/../../../")
121 src_dir = os.path.normpath(chrome_dir + "/../")
126 home_dir = os.path.normpath(os.getenv("HOMEDRIVE") + os.getenv("HOMEPATH"))
137 search_locations.append(os.getenv("HOME") + "/bin/DumpRenderTree/"
145 search_locations.append(os.getenv("HOME") + "/bin/DumpRenderTree/" +
149 if os.path.isfile(loc):
159 static_files = os.listdir(_static_dir)
160 return set(os.path.splitext(file_name)[0]
182 os.path.isfile(options.dump_render_tree_path)):
236 # and the os.remove will fail with a "Permission denied".
238 debug_log = os.path.normpath(_build_dir + "/" + "debug.log")
239 if (os.path.isfile(debug_log)):
240 os.remove(debug_log)
242 if 'EX_OK' in dir(os):
243 return os.EX_OK