[Python-bugs-list] [ python-Bugs-693416 ] 2.3a2 import after os.chdir difference

SourceForge.net noreply@sourceforge.net
Tue, 25 Feb 2003 20:42:57 -0800


Bugs item #693416, was opened at 2003-02-25 21:42
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=693416&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: James P Rutledge (jrut)
Assigned to: Nobody/Anonymous (nobody)
Summary: 2.3a2 import after os.chdir difference

Initial Comment:
In Python 2.3a2 in interactive mode an import after an
os.chdir imports the module in the new current
directory after the os.chdir.

This is the same as Python 2.2.2 does both in
interactive and non-interactive mode.

In Python 2.3a2 in non-interactive mode an import after
an os.chdir does not import the module in the new
current directory after the os.chdir.  Instead it
attempts to import a module (if present) by that name
in the previous current directory before the os.chdir.
If there is not a module by that name in the previous
current directory, there is an ImportError exception.

The above results are on a Debian Linux system using an
Intel 32 bit processor.

No PYTHONSTARTUP environment variable was set.
No PYTHONPATH environment variable was set.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=693416&group_id=5470