Usual practice: running/testing modules in a package

Casey casey.mcginty at gmail.com
Wed Sep 3 16:21:49 EDT 2008


On Aug 26, 10:21 pm, Casey <casey.mcgi... at gmail.com> wrote:
> On Aug 12, 9:57 pm, alito <alito... at gmail.com> wrote:
>
>
>
> > A wrapper on the level up works:
>
> > ~/python$ cat importercaller.py
> > from testpackage import config
> > config.hello()
>
> > ~/python$ python importercaller.py
> > hello
>
> > So, how do I run these modules without writing a wrapper script for
> > each one?
>


It looks like PEP 366 [http://www.python.org/dev/peps/pep-0366/] will
solve this issue.



More information about the Python-list mailing list