install.py

changeset 2618
bc7339209500
parent 2608
01118174a2f5
child 2634
8bd79dfb48a5
equal deleted inserted replaced
2617:5719edfddb4c 2618:bc7339209500
222 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format( 222 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(
223 sys.exec_prefix, pydir, wfile) 223 sys.exec_prefix, pydir, wfile)
224 224
225 # Mac OS X 225 # Mac OS X
226 elif sys.platform == "darwin": 226 elif sys.platform == "darwin":
227 pyexec = "{0}/bin/pythonw3".format(sys.exec_prefix)
228 if not os.path.exists(pyexec):
229 pyexec = "{0}/bin/python3".format(sys.exec_prefix)
227 wname = wfile 230 wname = wfile
228 wrapper = \ 231 wrapper = \
229 '''#!/bin/sh 232 '''#!/bin/sh
230 233
231 exec "{0}/bin/pythonw3" "{1}/{2}.py" "$@" 234 exec "{0}" "{1}/{2}.py" "$@"
232 '''.format(sys.exec_prefix, pydir, wfile) 235 '''.format(pyexec, pydir, wfile)
233 236
234 # *nix systems 237 # *nix systems
235 else: 238 else:
236 wname = wfile 239 wname = wfile
237 wrapper = \ 240 wrapper = \

eric ide

mercurial