[pygtk] Setting application name in pygtk?

Chris Lambacher chris at kateandchris.net
Wed Nov 8 05:19:17 WST 2006


On Tue, Nov 07, 2006 at 01:59:35PM -0500, Willie Walker wrote:
> The "-m" option looks like it might be close to sufficient in terms of
> how it sets argv[0] to the full name of the located module, but I've
> never been able to get it to work with something in a package.  For
> example, orca lives in the orca package and the orca.orca module
> contains the 'main' for orca.  I've never figured out the magic
> incantation for -m.  "python -m orca.orca" seems like the logical thing,
> but it doesn't work for me.

the ability to use dotted names (i.e. 'python -m orca.orca') was added in
python 2.5.  Python 2.4 only allowed the use of top level modules (i.e.
undotted module names).

-Chris



More information about the pygtk mailing list