How to shortcut a package path?
Pedro Werneck
pedro.werneck at bol.com.br
Sat Aug 16 17:27:24 EDT 2003
on dir1/__init__.py:
import dir2.program
program = dir2.program
But why do you want to do this ?
On 16 Aug 2003 17:05:46 -0700
sdhyok at yahoo.com (sdhyok) wrote:
> Is there any way to create a shortcut for a package path?
> For instance, if I have the following path structure,
>
> dir1/dir2/program.py
>
> what should I do if I want to import program with
>
> from dir1 import program
>
> , not with
>
> from dir1.dir2 import program
>
>
> Thanks in advance.
>
> Daehyok Shin
> --
> http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list