[Idle-dev] [ idlefork-Bugs-745525 ] current working directory

SourceForge.net noreply@sourceforge.net
Thu, 29 May 2003 07:27:36 -0700


Bugs item #745525, was opened at 2003-05-29 14:27
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=745525&group_id=9579

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Bruce Sherwood (bsherwood)
Assigned to: Nobody/Anonymous (nobody)
Summary: current working directory

Initial Comment:
I'm not sure whether this is a bug or a feature, but it
represents a significant change from the original idlefork.

Put this at the start of a file and run it:
import os
print os.getcwd()

In the past this was the directory where the file is
saved, but now it is always the starting directory for
IDLE (on Windows, the directory specified in the "Start
in:" property of the shortcut used to start IDLE),
independent of where the file is stored. This makes it
awkward to test and run programs that do simple file
I/O in the program's own directory, where in the past
it was sufficient just to do an open on the data file.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=745525&group_id=9579