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

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to