summaryrefslogtreecommitdiff
path: root/piglit
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-05-09 16:28:56 -0400
committerTom Stellard <thomas.stellard@amd.com>2014-05-09 17:36:34 -0400
commitbd80b1b9dffa42f907cbcd2df849365d8359fb03 (patch)
treec254375751eff25faffb0cd972ec2f51af6c8f06 /piglit
parentb3cb31ba002305af775baa235d1eaaed16d5d777 (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>
Diffstat (limited to 'piglit')
-rwxr-xr-xpiglit3
1 files changed, 2 insertions, 1 deletions
diff --git a/piglit b/piglit
index af8dfb135..dcb51db33 100755
--- a/piglit
+++ b/piglit
@@ -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