Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Changing the current directory

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


vicente.soler at gmail

Nov 15, 2009, 3:59 AM

Post #1 of 1 (155 views)
Permalink
Changing the current directory

Ever since I installed my Python 2.6 interpreter, I've been saving my
*.py files in the C:\Program Files\Python26 directory, which is the
default directory for such files in my system.

However, I have realised that the above is not the best practice.
Therefore I created the C:\Program Files\Python26\test directory and I
want it to be my default directory for saving *.py files, importing
modules, etc.

I'd like to do something like the DOS equivalent of "CD test" but I
do not know kow to do it.

I am currently doing something really awful: I open a *.py file in the
est subdirectory, I run it with the F5 key and it works! but I am
doing really something stupid.

I can see that it works because if I do
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.