How to shortcut a package path?

sdhyok sdhyok at yahoo.com
Sat Aug 16 20:05:46 EDT 2003


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




More information about the Python-list mailing list