Double symlinking breaks module import
Csaba Henk
tphhec01 at degas.ceu.hu
Sat Aug 23 07:13:33 EDT 2003
Hello!
I use Python 2.2.2 on Linux. I met the following issue:
Say I have the module mymod and the script myprog.py in /mydir.
myprog.py imports mymod. If I create a symlink
/foo/myprog2.py -> /mydir/myprog.py, everything works as it should,
invoking any of /foo/myprog2.py /mydir/myprog.py work in the same way. But
if I create another symlink myprog3.py -> myprog2.py, and then I invoke
myprog3.py, I get compliances that mymod is not found.
Is it a bug or policy?
--
Csaba
Set theory is the LSD of mathematics
More information about the Python-list
mailing list