Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Default working directory

Reply
Thread Tools

Default working directory

 
 
vsoler
Guest
Posts: n/a
 
      12-22-2009
I'm using Python 2.6.4 on Windows (Vista & 7)

I usually start Python by clicking on Start Menu the Python IDLE
(Python GUI).

However, if I want to save a new source *.py file, the default
directory proposed for saving is not the one that I want.

What can I do if I want that the change of default directory
permanently, that is, if I quit python and I reenter it, the default
is still the one I have chosen?

Thank you for your help.

Vicente Soler
 
Reply With Quote
 
 
 
 
Tim Golden
Guest
Posts: n/a
 
      12-22-2009
vsoler wrote:
> I'm using Python 2.6.4 on Windows (Vista & 7)
>
> I usually start Python by clicking on Start Menu the Python IDLE
> (Python GUI).
>
> However, if I want to save a new source *.py file, the default
> directory proposed for saving is not the one that I want.
>
> What can I do if I want that the change of default directory
> permanently, that is, if I quit python and I reenter it, the default
> is still the one I have chosen?


Change the working directory in the shortcut?

TJG
 
Reply With Quote
 
 
 
 
Gabriel Genellina
Guest
Posts: n/a
 
      12-22-2009
En Tue, 22 Dec 2009 14:04:23 -0300, vsoler <>
escribió:

> I'm using Python 2.6.4 on Windows (Vista & 7)
>
> I usually start Python by clicking on Start Menu the Python IDLE
> (Python GUI).
>
> However, if I want to save a new source *.py file, the default
> directory proposed for saving is not the one that I want.
>
> What can I do if I want that the change of default directory
> permanently, that is, if I quit python and I reenter it, the default
> is still the one I have chosen?


Right click on the IDLE shortcut in the Start menu (or create a new
shortcut on your desktop), choose Properties, and set the Startup
Directory to your preferred directory.

--
Gabriel Genellina

 
Reply With Quote
 
vsoler
Guest
Posts: n/a
 
      12-22-2009
On 22 dic, 18:22, "Gabriel Genellina" <gagsl-...@yahoo.com.ar> wrote:
> En Tue, 22 Dec 2009 14:04:23 -0300, vsoler <vicente.so...@gmail.com> *
> escribió:
>
> > I'm using Python 2.6.4 on Windows (Vista & 7)

>
> > I usually start Python by clicking on Start Menu the Python IDLE
> > (Python GUI).

>
> > However, if I want to save a new source *.py file, the default
> > directory proposed for saving is not the one that I want.

>
> > What can I do if I want that the change of default directory
> > permanently, that is, if I quit python and I reenter it, the default
> > is still the one I have chosen?

>
> Right click on the IDLE shortcut in the Start menu (or create a new *
> shortcut on your desktop), choose Properties, and set the Startup *
> Directory to your preferred directory.
>
> --
> Gabriel Genellina


I'll try it! Thank you
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change default working directory malpropio Java 6 11-04-2008 11:30 PM
System.IO.Directory.GetDirectories() and System.IO.Directory.GetFiles() are not returning the specified directory Nathan Sokalski ASP .Net 2 09-06-2007 03:58 PM
Default Mozilla isn't default! Help! M. FERRANTE Firefox 1 07-27-2005 09:07 AM
Runtime.exec() with env and working directory parameters is not working. Priyanka AGARWAL Java 9 05-25-2004 02:34 PM
automatic default route propagation into RIP: default metric Ben Low Cisco 2 12-28-2003 03:57 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57