file open default location

T. Crane tcrane at
Tue Jun 12 15:42:41 CEST 2007


How is the default path chosen in this instance:

myFile = file('test.txt','w')

Here I'm opening/creating a file but I have not specified the exact path, so 
how does Python determine where to 'put' this file?  More to the point, how 
do I change what the default path is?  Right now it's a networked drive that 
should not be getting my Python clutter.

Interestingly, this network drive is also where I can find my _ipython 
folder from my ipython install as well as my .matplotlib folder.  Can anyone 
tell me how to change where these folders and files go by default?

thanks for any help,

More information about the Python-list mailing list