diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2014-05-09 16:28:56 -0400 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2014-05-09 17:36:34 -0400 |
commit | bd80b1b9dffa42f907cbcd2df849365d8359fb03 (patch) | |
tree | c254375751eff25faffb0cd972ec2f51af6c8f06 | |
parent | b3cb31ba002305af775baa235d1eaaed16d5d777 (diff) |
piglit: Don't override user's definition of the PIGLIT_SOURCE_DIR env variable v2
reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
-rwxr-xr-x | piglit | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -42,7 +42,8 @@ if not path.exists('HACKING'): _binpath, _bin = path.split(__file__) _libdir = path.abspath(path.join(_binpath, '..', 'lib', _bin)) sys.path.append(_libdir) - os.environ['PIGLIT_SOURCE_DIR'] = _libdir + if 'PIGLIT_SOURCE_DIR' not in os.environ: + os.environ['PIGLIT_SOURCE_DIR'] = _libdir import framework.programs.run as run import framework.programs.summary as summary |