Message17938
The bug can be demonstrated as follows
(In some Bourne-tpye Unix shell) type
$ mkdir d1 d2 &&
echo 'import sys
print sys.path[0]' > d1/script.py &&
ln -s ../d1/script.py d2 &&
ln -s d2/script.py .
Now see what the three invocations of script.py give us:
$ python d1/script.py
d1
$ python d2/script.py
d2/../d1
$ python script.py
d2
-- if script.py imported modules residing in d1, at
the third invocation the modules would not be found. |
|
Date |
User |
Action |
Args |
2007-08-23 14:16:24 | admin | link | issue794291 messages |
2007-08-23 14:16:24 | admin | create | |
|