X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=blobdiff_plain;f=base_driver.py;h=1971fce5a88d616608c918fd16b6152ceadd0673;hp=1be143288fffd5af79245757674b0434aabd66a1;hb=799a2cd3f002cb517b0c461ee0cb9feb31dc5761;hpb=13e2c906a5e6ece1cf9ba1ed23551b570d7180fd diff --git a/base_driver.py b/base_driver.py index 1be1432..1971fce 100644 --- a/base_driver.py +++ b/base_driver.py @@ -107,6 +107,9 @@ def get_build_program(program): def get_scripts_path(): + if options.apitrace_source: + return os.path.join(options.apitrace_source, 'scripts') + bin_path = get_bin_path() try_paths = [ @@ -147,6 +150,10 @@ class Driver: '--apitrace', metavar='PROGRAM', type='string', dest='apitrace', default=default_apitrace, help='path to apitrace executable') + optparser.add_option( + '--apitrace-source', metavar='PATH', + type='string', dest='apitrace_source', + help='path to apitrace source tree') optparser.add_option( '-C', '--directory', metavar='PATH', type='string', dest='cwd', default=None,