[Scipy-svn] r6260 - branches/0.7.x

scipy-svn at scipy.org scipy-svn at scipy.org
Sat Mar 20 09:42:28 EDT 2010


Author: cdavid
Date: 2010-03-20 08:42:28 -0500 (Sat, 20 Mar 2010)
New Revision: 6260

Modified:
   branches/0.7.x/pavement.py
Log:
Make paths to Python in Wine a little less hardcoded.

Modified: branches/0.7.x/pavement.py
===================================================================
--- branches/0.7.x/pavement.py	2010-03-20 13:42:07 UTC (rev 6259)
+++ branches/0.7.x/pavement.py	2010-03-20 13:42:28 UTC (rev 6260)
@@ -79,12 +79,12 @@
     WINE_PY26 = [r"C:\Python26\python26.exe"]
 elif sys.platform == "darwin":
     WINE_PY25 = ["/Applications/Darwine/Wine.bundle/Contents/bin/wine",
-                 "/Users/david/.wine/drive_c/Python25/python.exe"]
+                 os.environ['HOME'] + '/.wine/drive_c/Python25/python.exe']
     WINE_PY26 = ["/Applications/Darwine/Wine.bundle/Contents/bin/wine",
-                 "/Users/david/.wine/drive_c/Python26/python.exe"]
+                 os.environ['HOME'] + '/.wine/drive_c/Python26/python.exe']
 else:
-    WINE_PY25 = ["/home/david/.wine/drive_c/Python25/python.exe"]
-    WINE_PY26 = ["/home/david/.wine/drive_c/Python26/python.exe"]
+    WINE_PY25 = [os.environ['HOME'] + "/.wine/drive_c/Python25/python.exe"]
+    WINE_PY26 = [os.environ['HOME'] + "/.wine/drive_c/Python26/python.exe"]
 WINE_PYS = {'2.6' : WINE_PY26, '2.5': WINE_PY25}
 SUPERPACK_BUILD = 'build-superpack'
 SUPERPACK_BINDIR = os.path.join(SUPERPACK_BUILD, 'binaries')




More information about the Scipy-svn mailing list