How to set default directory for saving files in Python IDLE

Reply

Join Date: Jul 2006
Posts: 2
Reputation: JohnJohnUSA is an unknown quantity at this point 
Solved Threads: 0
JohnJohnUSA JohnJohnUSA is offline Offline
Newbie Poster

How to set default directory for saving files in Python IDLE

 
0
  #1
Jul 4th, 2006
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!
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1,221
Reputation: bumsfeld will become famous soon enough bumsfeld will become famous soon enough 
Solved Threads: 137
bumsfeld's Avatar
bumsfeld bumsfeld is offline Offline
Nearly a Posting Virtuoso

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

 
0
  #2
Jul 4th, 2006
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC