mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-09 11:51:21 +00:00
test_runner.py: make test_path work for test-from-installdir.
This commit is contained in:
parent
f5bf900d64
commit
f88e4f0df6
@ -17,12 +17,12 @@ timeout = 240
|
||||
|
||||
srcfile = allmydata.__file__
|
||||
srcdir = os.path.dirname(os.path.dirname(os.path.realpath(srcfile)))
|
||||
if os.path.normcase(os.path.basename(srcdir)) == 'site-packages':
|
||||
srcdir = os.path.dirname(srcdir)
|
||||
if re.search(r'python.+\..+', os.path.normcase(os.path.basename(srcdir))):
|
||||
srcdir = os.path.dirname(srcdir)
|
||||
|
||||
rootdir = os.path.dirname(srcdir)
|
||||
if os.path.normcase(os.path.basename(srcdir)) == 'site-packages':
|
||||
if re.search(r'python.+\..+', os.path.normcase(os.path.basename(rootdir))):
|
||||
rootdir = os.path.dirname(rootdir)
|
||||
rootdir = os.path.dirname(rootdir)
|
||||
|
||||
bintahoe = os.path.join(rootdir, 'bin', 'tahoe')
|
||||
if sys.platform == "win32":
|
||||
|
Loading…
x
Reference in New Issue
Block a user