[Idle-dev] RE: idle_path?
Patrick K. O'Brien
pobrien@orbtech.com
Sat, 15 Sep 2001 08:09:37 -0500
If you are on Windows, you can change the working directory associated with
the IDLE shortcuts on the desktop or on the Start menu. Once IDLE is loaded,
you can change the current working directory with something like the
following example:
>>> import os
>>> os.chdir('c:\\')
>>>
---
Patrick K. O'Brien
Orbtech (http://www.orbtech.com)
"I am, therefore I think."
-----Original Message-----
From: Karshi Hasanov [mailto:karshi.hasanov@utoronto.ca]
Sent: Friday, September 14, 2001 8:57 PM
To: pobrien@orbtech.com; pobrien@orbtech.com
Subject: idle_path?
When you use IDLE, and if you wanna open some file in some directory what
usually you do is "Open" then you see default path ( i.e your ~/home dir).
What I wanted to do was to find a way to change this default path.
Please let me know if you know how do it.
Which path, exactly? Do you mean the python path inside IDLE?
>>> import sys
>>> sys.path
['C:\\PYTHON21\\Tools\\idle', 'C:\\Code', 'C:\\Python21\\win32',
'C:\\Python21\\win32\\lib', 'C:\\Python21', 'C:\\Python21\\Pythonwin',
'C:\\PYTHON21\\DLLs', 'C:\\PYTHON21\\lib', 'C:\\PYTHON21\\lib\\plat-win',
'C:\\PYTHON21\\lib\\lib-tk', 'C:\\PYTHON21\\Numeric']
>>>
---
Patrick K. O'Brien
Orbtech (http://www.orbtech.com)
"I am, therefore I think."