Hi, <code> $ cat papywizard.sh #/bin/sh
python -c "from papywizard.scripts.main import main; main()" $@ </code> ... and there's your "-c". If you had replaced papywizard.sh with papywizard.py: <code> #!/usr/bin/env python from papywizard.scripts.main import main main() </code> ... and `chmod +x papywizard.py`, you also would not have had that problem. If you still really want a shell script, you can call papywizard.py from there. But I have seen Willie's method used a lot too. Regards, Walter Willie Walker wrote: > Here's the hack we did in Orca to prevent this from happening: > > # We're going to force the name of the app to "orca" so pygtk > # will end up showing us as "orca" to the AT-SPI. If we don't > # do this, the name can end up being "-c". See bug 364452 at > # http://bugzilla.gnome.org/show_bug.cgi?id=364452 for more > # information. > # > import sys > sys.argv[0] = "orca" > > Will > > On Oct 14, 2008, at 6:56 AM, Frédéric wrote: > >> >> Le 14/10/2008, "Walter Leibbrandt" <[EMAIL PROTECTED]> a écrit: >> >>> This is just a hunch, but I'll bet that you don't get that behavior >>> when >>> you run your program from the command-line? My first guess is that it >>> has something to do with the way in which your program is launched (ie. >>> the exact command executed). >> >> Unfortunatly, I always have the problem, whatever the way I launch it. >> >>> It would help to have a link to your sources, though. >> >> Sure: >> >> http://trac.gbiloba.org/papywizard/browser/trunk >> >> I'm wondering if the problem did not appear when I start using i18n... >> Could it be related? My dialogs are made with glade-3 (they are all in >> the papywizard/view dir). >> >> -- >> Frédéric >> _______________________________________________ >> pygtk mailing list [email protected] >> http://www.daa.com.au/mailman/listinfo/pygtk >> Read the PyGTK FAQ: http://faq.pygtk.org/ > -- Walter Leibbrandt http://translate.org.za/blogs/walter Software Developer +27 12 460 1095 (w) Translate.org.za Recent blogs: * Switching from Subversion to git http://www.translate.org.za/blogs/walter/en/content/switching-subversion-git * The first official release of Spelt * Auto-completion and auto-correction for Gtk+ widgets _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
