From f3ae4e4e00f3d2c9a05324db95ab252b6850feb7 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Tue, 18 Jan 2011 00:19:14 -0800 Subject: [PATCH] vars_init.py: always add .../redo-sh to the PATH, even if it doesn't exist. Otherwise a fresh 'redo test' in the redo repo won't switch to using redo-sh/sh after redo-sh.do runs, and the tests aren't accurate. --- vars_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars_init.py b/vars_init.py index 75a813b..849c20f 100644 --- a/vars_init.py +++ b/vars_init.py @@ -12,7 +12,7 @@ def init(targets): seen = {} dirs = [] for k in trynames: - if not seen.get(k) and os.path.exists('%s/.' % k): + if not seen.get(k): seen[k] = 1 dirs.append(k) os.environ['PATH'] = ':'.join(dirs) + ':' + os.environ['PATH']