From ada9e8ad1bdf67b56031535c984c2c83ca90c6db Mon Sep 17 00:00:00 2001 From: stevenknight Date: Sun, 6 Jul 2003 05:48:06 +0000 Subject: [PATCH] Fix runtest.py if Aegis is installed but it's not being run inside an active change. git-svn-id: http://scons.tigris.org/svn/scons/trunk@734 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- runtest.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/runtest.py b/runtest.py index 2fbc9f49..65089994 100644 --- a/runtest.py +++ b/runtest.py @@ -157,15 +157,18 @@ def whereis(file): aegis = whereis('aegis') +sp = [] + if aegis: - sp = os.popen("aesub '$sp' 2>/dev/null", "r").read()[:-1] - sp = string.split(sp, os.pathsep) + paths = os.popen("aesub '$sp' 2>/dev/null", "r").read()[:-1] + sp.extend(string.split(paths, os.pathsep)) spe = os.popen("aesub '$spe' 2>/dev/null", "r").read()[:-1] spe = string.split(spe, os.pathsep) else: - sp = [cwd] spe = [] +sp.append(cwd) + class Test: def __init__(self, path, spe=None): self.path = path -- 2.26.2