[PyKDE] latest eric3 snapshot on Mac OS X

Gerard Vermeulen gerard.vermeulen at grenoble.cnrs.fr
Wed Nov 1 12:18:01 GMT 2006


Hi Detlev,

I have to apply this patch to generate valid eric3* shell scripts on Mac OSX.

--- eric-snapshot-20061029//install.py.gv       2006-11-01 12:54:26.000000000 +0
100
+++ eric-snapshot-20061029//install.py  2006-11-01 12:55:38.000000000 +0100
@@ -126,8 +126,8 @@
         wrapper = \
 '''#!/bin/sh
 
-exec "%sw" "%s/%s.py" $*
-''' % (sys.executable,pydir,wfile)
+exec "%s/bin/pythonw" "%s/%s.py" $*
+''' % (sys.exec_prefix,pydir,wfile)
     else:
         wname = wfile
         wrapper = \


This is garanteed to find the pythonw executable.  On my system
python -c 'import sys; print sys.executable'
returns
/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
but there is no Pythonw in the same directory as Python.

Gerard




More information about the PyQt mailing list