diff options
author | Steven Knight <knight@baldmt.com> | 2003-05-02 04:09:02 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-05-02 04:09:02 (GMT) |
commit | 77568a787451a72ef62198db424ac62bbaf50294 (patch) | |
tree | 1c9a820e32ea1a4eb89d70d9ef895ed6557cb2a4 /src/setupTests.py | |
parent | 8adc0857c2ebd976314a29ca338d6ce82ece251f (diff) | |
download | SCons-77568a787451a72ef62198db424ac62bbaf50294.zip SCons-77568a787451a72ef62198db424ac62bbaf50294.tar.gz SCons-77568a787451a72ef62198db424ac62bbaf50294.tar.bz2 |
Fix regression tests that use test.whereis(). (Anthony Roach)
Diffstat (limited to 'src/setupTests.py')
-rw-r--r-- | src/setupTests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/setupTests.py b/src/setupTests.py index 055475e..6457fff 100644 --- a/src/setupTests.py +++ b/src/setupTests.py @@ -32,6 +32,7 @@ import os import os.path import shutil import string +import sys import TestSCons @@ -68,7 +69,8 @@ test.subdir('root') root = test.workpath('root') -standard_lib = '%s/usr/lib/python1.5/site-packages/' % root +v = string.split(string.split(sys.version)[0], '.') +standard_lib = '%s/usr/lib/python%s.%s/site-packages/' % (root, v[0], v[1]) standalone_lib = '%s/usr/lib/scons' % root version_lib = '%s/usr/lib/%s' % (root, scons_version) |