Message158039
| Author |
j13r |
| Recipients |
j13r |
| Date |
2012年04月11日.14:42:48 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334155369.29.0.554259242167.issue14547@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If I have a script
foo/bar.py
import baz
and create a symlink to it, called barhere.py
ln -s foo/bar.py barhere.py
when I run it, it behaves unexpectedly, specifically it behaves differently than if I had copied it here. It prefers to import baz from foo/baz, not from the current folder.
Apparently Python (2.7.2-r3) handles symlinks differently than just looking at the content (everything is a file philosophy in UNIX). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月11日 14:42:49 | j13r | set | recipients:
+ j13r |
| 2012年04月11日 14:42:49 | j13r | set | messageid: <1334155369.29.0.554259242167.issue14547@psf.upfronthosting.co.za> |
| 2012年04月11日 14:42:48 | j13r | link | issue14547 messages |
| 2012年04月11日 14:42:48 | j13r | create |
|