importing modules from higher level directory
Nathan Rice
nathan.alexander.rice at gmail.com
Fri Jun 25 18:07:56 EDT 2010
Add the parent directory to your sys.path...
On Fri, Jun 25, 2010 at 5:20 PM, Nathan Huesken <python at lonely-star.org>wrote:
> Hi,
>
> Is it somehow possible to import modules from *.py files in a higher
> level directory?
> Intuitively I would do
>
> import ../module
>
> but that does not work.
> How does it work?
>
> Thanks!
> Nathan
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100625/c2451719/attachment-0001.html>
More information about the Python-list
mailing list