[Piglit] [PATCH] piglit: Don't override user's definition of the PIGLIT_SOURCE_DIR env variable

Tom Stellard thomas.stellard at amd.com
Fri May 9 13:31:09 PDT 2014


---
 piglit | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/piglit b/piglit
index af8dfb1..f0e6696 100755
--- a/piglit
+++ b/piglit
@@ -38,7 +38,7 @@ import argparse
 
 # If running in the source directory there will be a HACKING file, don't
 # muck with things, if not we need to screw with the python path
-if not path.exists('HACKING'):
+if not path.exists('HACKING') and 'PIGLIT_SOURCE_DIR' not in os.environ:
     _binpath, _bin = path.split(__file__)
     _libdir = path.abspath(path.join(_binpath, '..', 'lib', _bin))
     sys.path.append(_libdir)
-- 
1.8.1.5



More information about the Piglit mailing list