[Pythonmac-SIG] How can I include command line arguments in bundled
apps?
Peter Steiner
unistein at gmx.ch
Mon Oct 4 12:08:50 CEST 2004
Hello
I wish to tweak IDLE.app from MacPython 2.3 for Panther addons to call
IDLE with the -Qnew switch.
According to Gregor Lingl in
http://mail.python.org/pipermail/edu-sig/2003-September/003150.html the
-Qnew switch alone is not enough; -n is needed too.
I tried editing IDLE.app/Contents/MacOS/IDLE adding the switches with
sys.argv.insert(1, "-n")
sys.argv.insert(0, "-Qnew")
just after
sys.argv.insert(1, mainprogram)
but then the bundle wouldn't start anymore.
It works however if I start IDLE from the terminal:
$ pythonw -Qnew
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
idlelib/idle.py -n
Is it possible to achieve this with a bundle?
Regards, Peter
--
Peter Steiner <unistein at gmx.ch> PGP-ID 0x02850F53 (DH/DSS)
PGP Fingerprint 68AB D08E D995 41B4 C6FD 639D 9B94 D249 0285 0F53
More information about the Pythonmac-SIG
mailing list