[issue8955] import doesn't notice changes to working directory

R. David Murray report at bugs.python.org
Wed Jun 9 19:39:57 CEST 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

This is working as designed.

Try printing sys.path in your scripts.  It is what's in sys.path that matters, not the cwd.  (The cwd is put in the path as "" in the specific case of running the python interactive shell...and in certain applications that embed Python because of a bug in those applications.)

----------
nosy: +r.david.murray
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed
type:  -> behavior

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


More information about the Python-bugs-list mailing list