[issue1074015] current directory in sys.path handles symlinks badly

Marko Schuetz report at bugs.python.org
Fri Jun 19 01:54:10 CEST 2009


Marko Schuetz <MarkoSchuetz at web.de> added the comment:

I think this behavior is causing a related problem:

Assume I have directories currentWorkspace and branchRepository.

On branchRepository I have files main.py and module.py. main.py 
imports module.py. In currentWorkspace main.py links to the repository 
version, but module.py has a new version in currentWorkspace. Running 
main.py will not import the module.py from currentWorkspace.

I agree that branchRepository belongs on the search path, but 
currentWorkspace needs to be on the search path also and needs to take 
priority over branchRepository.

The attached file is an edit of the original recreatebug.sh

----------
nosy: +marko
Added file: http://bugs.python.org/file14317/recreatebug.sh

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1074015>
_______________________________________


More information about the Python-bugs-list mailing list