[Tutor] Setting Path From Python Shell (IDLE 0.8)

Kalle Svensson kalle@gnupung.net
Sat, 19 May 2001 15:47:59 +0200


Sez Mr. Razak:
> I want to know, how can i change directory while working inside python shell.

Use os.chdir() - http://www.python.org/doc/current/lib/os-file-dir.html

> Let say i want to save my python program in C:\PY_PRG directory and i want
> to set default to this directory. How to do that.

I suppose the above could help, but I don't know IDLE very well.

Peace,
  Kalle
-- 
Email: kalle@gnupung.net     | You can tune a filesystem, but you
Web: http://www.gnupung.net/ | can't tune a fish. -- man tunefs(8)
PGP fingerprint: 0C56 B171 8159 327F 1824 F5DE 74D7 80D7 BF3B B1DD
 [ Not signed due to lossage.  Blame Microsoft Outlook Express. ]