packages, modules and double imports - oh my!
Chris Withers
chris at simplistix.co.uk
Mon Oct 3 11:25:53 EDT 2011
On 03/10/2011 11:22, Chris Rebert wrote:
> http://docs.python.org/library/runpy.html :
> "The runpy module['s] main use is to implement the -m command line switch"
> "If the supplied module name refers to a package rather than a normal
> module, then that package is imported and the __main__ submodule
> within that package is then executed and the resulting module globals
> dictionary returned."
Interesting, but doesn't help with the bizarre double-exec of module.py
when it happens to be __main__...
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
More information about the Python-list
mailing list