Double symlinking breaks module import

Andrew Dalke adalke at mindspring.com
Sun Aug 24 05:41:28 CEST 2003


Csaba Henk:
> 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?

Python uses the normal file open functions, which automatically
follow links.  It doesn't build in the link following code itself.
I suspect your symlink points to the wrong place.  Can you
cat the file?

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list