Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/run-tests.py @ 5265:980da86fc66a
Include . in PYTHONPATH (makes testing unbundled extensions easier)
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 29 Aug 2007 17:01:10 -0700 |
parents | b817d17c7ee5 |
children | 7cdc896fdcd5 |
comparison
equal
deleted
inserted
replaced
5264:b817d17c7ee5 | 5265:980da86fc66a |
---|---|
152 sys.exit(1) | 152 sys.exit(1) |
153 os.chdir(TESTDIR) | 153 os.chdir(TESTDIR) |
154 | 154 |
155 os.environ["PATH"] = "%s%s%s" % (BINDIR, os.pathsep, os.environ["PATH"]) | 155 os.environ["PATH"] = "%s%s%s" % (BINDIR, os.pathsep, os.environ["PATH"]) |
156 | 156 |
157 pydir = os.pathsep.join([PYTHONDIR, TESTDIR]) | |
157 pythonpath = os.environ.get("PYTHONPATH") | 158 pythonpath = os.environ.get("PYTHONPATH") |
158 if pythonpath: | 159 if pythonpath: |
159 pythonpath = PYTHONDIR + os.pathsep + pythonpath | 160 pythonpath = pydir + os.pathsep + pythonpath |
160 else: | 161 else: |
161 pythonpath = PYTHONDIR | 162 pythonpath = pydir |
162 os.environ["PYTHONPATH"] = pythonpath | 163 os.environ["PYTHONPATH"] = pythonpath |
163 | 164 |
164 use_correct_python() | 165 use_correct_python() |
165 | 166 |
166 if coverage: | 167 if coverage: |