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.
This commit is contained in:
Avery Pennarun 2011-01-18 00:19:14 -08:00
commit f3ae4e4e00

View file

@ -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']