[Python-ideas] python_modules as default directory for dependencies in distutils

Philipp Hagemeister phihag at phihag.de
Wed Nov 21 23:34:17 CET 2012


On 11/21/2012 11:21 PM, Jim Jewett wrote:
> That said, I think (but haven't tested) that import __main__ or
> import myprojutils will do the right thing, because of sys.path[0]
> being the root directory of myapp.
Nick already clarified what he meant in his other mail, archived at
http://mail.python.org/pipermail/python-ideas/2012-November/017928.html

I just misunderstood his proposal - as far as my current understanding
goes, he suggests putting the application, its __main__.py file, as well
as the dependencies in one subdirectory.

Cheers,

Philipp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20121121/88228cc4/attachment.pgp>


More information about the Python-ideas mailing list