Commit fe6dd1c0 authored by 's avatar

Added the windows path hackery to the standard z2.py so that the z2.pyt

that is used in the windows binary distribution will always be the exact
same file as the current z2.py (but in windows crlf format, because the
WISE installer won't correctly do the path replacement otherwise). The
bit of hackery does not affect platforms other than windows.
parent d4d2ea23
...@@ -213,6 +213,24 @@ Environment settings are of the form: NAME=VALUE. ...@@ -213,6 +213,24 @@ Environment settings are of the form: NAME=VALUE.
Note: you *must* use Python 1.5.2 or later! Note: you *must* use Python 1.5.2 or later!
""" """
# This is required path hackery for the win32 binary distribution
# that ensures that the bundled python libraries are used. In a
# win32 binary distribution, the installer will have replaced the
# marker string with the actual software home. If that has not
# happened, then the path munging code is skipped.
swhome=r'INSERT_SOFTWARE_HOME'
if swhome != 'INSERT_SOFTWARE_HOME':
import sys
sys.path.insert(0, '%s/lib/python' % swhome)
sys.path.insert(1, '%s/bin/lib' % swhome)
sys.path.insert(2, '%s/bin/lib/plat-win' % swhome)
sys.path.insert(3, '%s/bin/lib/win32' % swhome)
sys.path.insert(4, '%s/bin/lib/win32/lib' % swhome)
sys.path.insert(5, '%s' % swhome)
import os, sys, getopt, string import os, sys, getopt, string
program=sys.argv[0] program=sys.argv[0]
......
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