469,160 Members | 1,990 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,160 developers. It's quick & easy.

How to specify default directory for saving files in IDLE

I am using Python IDLE 2.4.3 on Windows XP. I use File->New Window
to create a new program. In the Save As dialog, it always takes me to
the python program directory (where python is installed). Since this
is not where I want to save my source file, I have to select the
directory I want.

Is there a way that I can have python always bring up the Save As
dialog pointing to the directory of my choice? In other words, I
would like to specify what I want the default directory for saving
files to be.

In addition, is there a way to get IDLE to add the extension .py to
the file name in the Save As dialog without my having to type it each
time?

Thank you in advance for your help!

Jul 4 '06 #1
1 5003

JohnJohn wrote>
Is there a way that I can have python always bring up the Save As
dialog pointing to the directory of my choice? In other words, I
would like to specify what I want the default directory for saving
files to be.
I use PythonWin, not IDLE. But I suspect you could use the same trick.
Create a shortcut on your desktop for starting IDLE. (find idle.py or
idle.bat, right click, send shortcut to desktop).

Now go to the desktop, right click on the idle shortcut, and fill in
the slot that says "Start In" with the directory where you save your
Python scripts.

Hope that helps.

rd

Jul 4 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Florian Wellner | last post: by
1 post views Thread by Moosebumps | last post: by
reply views Thread by mchl gdbt | last post: by
3 posts views Thread by Newbie | last post: by
3 posts views Thread by =?Utf-8?B?Q0QuU21hbGxleQ==?= | last post: by
4 posts views Thread by brad | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.