944,028 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 5575
  • Python RSS
Jul 4th, 2006
0

How to set default directory for saving files in Python IDLE

Expand Post »
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!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
JohnJohnUSA is offline Offline
2 posts
since Jul 2006
Jul 4th, 2006
0

Re: How to set default directory for saving files in Python IDLE

Go to directory where idle.py is located. On my Windows XP computer this was
C:\Python24\Lib\idlelib
Now bring up file
config-main.def
in editor like NotePad. It explains a lot of your questions.
Reputation Points: 404
Solved Threads: 180
Nearly a Posting Virtuoso
bumsfeld is offline Offline
1,422 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Error trapping while reading windows XP registry entries
Next Thread in Python Forum Timeline: YAC wxPython Tiny Calculator





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC