From b0e7fddc329eb7bb1f2c27e9d3f00795f2206f3f Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 22 Feb 2016 13:16:43 +0000 Subject: [PATCH] lit: unbreak on non-conda. --- artiq/test/lit/lit.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/test/lit/lit.cfg b/artiq/test/lit/lit.cfg index b52a4c752..08d1f44b5 100644 --- a/artiq/test/lit/lit.cfg +++ b/artiq/test/lit/lit.cfg @@ -19,7 +19,8 @@ else: python = sys.executable config.substitutions.append( ("%python", python) ) -config.environment["PYTHONPATH"] = os.getenv("PYTHONPATH") +if os.getenv("PYTHONPATH"): + config.environment["PYTHONPATH"] = os.getenv("PYTHONPATH") not_ = "{} {}".format(sys.executable, os.path.join(root, "not.py")) config.substitutions.append( ("%not", not_) )