Lines Matching refs:path
21 import os.path
28 MY_DIR = os.path.dirname(os.path.realpath(__file__))
29 V8_DIR = os.path.dirname(MY_DIR)
30 OUT_DIR = os.path.join(V8_DIR, 'check-header-includes')
81 full_name = os.path.join(V8_DIR, filename)
82 if not os.path.exists(full_name):
84 if os.path.isdir(full_name):
86 full_name = os.path.join(filename, subfile)
104 split = os.path.split(header)
105 header_dir = os.path.relpath(split[0], V8_DIR)
107 prefix = header_dir.replace(os.path.sep, '-')
109 return os.path.join(OUT_DIR, cc_file_name)
116 rel_cc_file_name = os.path.relpath(cc_file_name, V8_DIR)
118 if os.path.exists(cc_file_name):
129 gni_file = os.path.join(OUT_DIR, 'sources.gni')
130 printv('Generating file "{}"'.format(os.path.relpath(gni_file, V8_DIR)))
142 gn.write(' "{}",\n'.format(os.path.relpath(cc_file_name, V8_DIR)))
149 if not os.path.exists(OUT_DIR):