Lines Matching refs:directory
107 def getfilesoftype(directory, ending):
108 for dirpath, _, filenames in os.walk(directory):
109 rp = os.path.normpath(os.path.relpath(dirpath, directory))
202 directory = os.path.join(tempfile.gettempdir(), 'skpdf_control_tree')
204 if os.path.isdir(directory):
206 check_call(['git', 'checkout', commit], cwd=directory)
207 return directory
209 shutil.rmtree(directory)
210 check_call(['git', 'worktree', 'add', '-f', directory, commit])
211 return directory
213 def build_skia(directory, executable):
220 build_dir = directory + '/out/pdftest'
221 check_call([sys.executable, 'bin/sync'], cwd=directory)
222 check_call([directory + '/bin/gn', 'gen', 'out/pdftest', args],
223 cwd=directory)
227 def build_and_run_dm(directory, data_dir):
228 dm = build_skia(directory, 'dm')
234 check_call(dm_args, cwd=directory)