Changeset: 93ba1e1722d8 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=93ba1e1722d8
Modified Files:
        testing/Mtest.py.in
Branch: pythonudf
Log Message:

Set PYTHONPATH and PYTHONHOME on Windows so that the python DLL can be found.


diffs (17 lines):

diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -193,6 +193,13 @@ if isatty and os.isatty(sys.stdin.fileno
                 # rediculously narrow tty, ignore value
                 ttywidth = 0
 
+if os.name == 'nt':
+    p = os.path.join(sys.prefix, 'Lib')
+    if 'PYTHONPATH' in os.environ:
+        p = os.environ['PYTHONPATH'] + os.pathsep + p
+    os.environ['PYTHONPATH'] = p
+    os.environ['PYTHONHOME'] = sys.prefix
+
 import string                   # for whitespace
 def splitcommand(cmd):
     '''Like string.split, except take quotes into account.'''
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to