[Pythonmac-SIG] How can I include command line arguments in
bundled apps?
Jack Jansen
Jack.Jansen at cwi.nl
Mon Oct 4 16:02:09 CEST 2004
On 4-okt-04, at 12:08, Peter Steiner wrote:
> 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.
I don't see why this wouldn't work. Cou you try running
/Applications/MacPython-2.3/IDLE.app/Contents/MacOS/IDLE from the
command line to see whether it produces any error output? And/or check
the console window to see whether there's anything there...
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma
Goldman
More information about the Pythonmac-SIG
mailing list