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
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
Comment