Changing the current directory

Discussion in 'Python' started by vsoler, Nov 15, 2009.

  1. vsoler

    vsoler Guest

    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
     
    vsoler, Nov 15, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Manu
    Replies:
    1
    Views:
    6,137
    Natty Gur
    Jul 20, 2003
  2. Andy B.
    Replies:
    4
    Views:
    24,408
    firebush
    Jan 30, 2011
  3. Peter Hansen
    Replies:
    1
    Views:
    338
    Mike Meyer
    Dec 19, 2005
  4. Dave Rudolf
    Replies:
    2
    Views:
    379
    Daniel Pitts
    Jan 17, 2007
  5. vsoler
    Replies:
    8
    Views:
    676
    Gabriel Genellina
    Nov 16, 2009
Loading...

Share This Page