Commit 4c81dc4f authored by Tres Seaver's avatar Tres Seaver

Backport fix for broken Windows tests from trunk.

parent aa2e1bb3
...@@ -30,7 +30,7 @@ if zhome: ...@@ -30,7 +30,7 @@ if zhome:
if shome: if shome:
shome = os.path.abspath(shome) shome = os.path.abspath(shome)
else: else:
shome = os.path.join(zhome, 'lib/python') shome = os.path.join(zhome, 'lib', 'python')
elif shome: elif shome:
shome = os.path.abspath(shome) shome = os.path.abspath(shome)
zhome = os.path.dirname(os.path.dirname(shome)) zhome = os.path.dirname(os.path.dirname(shome))
...@@ -42,7 +42,7 @@ elif ihome: ...@@ -42,7 +42,7 @@ elif ihome:
else: else:
# No zope home, assume that it is the script directory # No zope home, assume that it is the script directory
zhome = os.path.abspath(os.path.dirname(sys.argv[0])) zhome = os.path.abspath(os.path.dirname(sys.argv[0]))
shome = os.path.join(zhome, 'lib/python') shome = os.path.join(zhome, 'lib', 'python')
sys.path.insert(0, shome) sys.path.insert(0, shome)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment