Fixed an issue in the install script related to the usage of a virtual environment on Mac.

Wed, 24 Apr 2013 19:44:41 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 24 Apr 2013 19:44:41 +0200
changeset 2618
bc7339209500
parent 2617
5719edfddb4c
child 2619
55f6484ad1c3

Fixed an issue in the install script related to the usage of a virtual environment on Mac.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Wed Apr 24 19:14:22 2013 +0200
+++ b/install.py	Wed Apr 24 19:44:41 2013 +0200
@@ -224,12 +224,15 @@
 
     # Mac OS X
     elif sys.platform == "darwin":
+        pyexec = "{0}/bin/pythonw3".format(sys.exec_prefix)
+        if not os.path.exists(pyexec):
+            pyexec = "{0}/bin/python3".format(sys.exec_prefix)
         wname = wfile
         wrapper = \
 '''#!/bin/sh
 
-exec "{0}/bin/pythonw3" "{1}/{2}.py" "$@"
-'''.format(sys.exec_prefix, pydir, wfile)
+exec "{0}" "{1}/{2}.py" "$@"
+'''.format(pyexec, pydir, wfile)
 
     # *nix systems
     else:

eric ide

mercurial