Re: IDLE Default Working Directory

2018-11-16 Thread Irv Kalb
> On Nov 15, 2018, at 2:44 PM, eryk sun wrote: > > On 11/14/18, Irv Kalb wrote: >> >> When working with data files, I tell students to put their project (their >> main program and any other related files) in a folder. Then, in their calls >> to "open", I tell them to just give the name of th

Re: IDLE Default Working Directory

2018-11-15 Thread Terry Reedy
On 11/13/2018 9:04 PM, Christman, Roger Graydon wrote: On 13 Nov 2018, at 09:51, Bev in TX wrote: On Nov 12, 2018, at 5:50 PM, Terry Reedy wrote: For me, open (command-O) opens 'Documents'. I presume it should be easy enough to move into a 'py' subfolder.

Re: IDLE Default Working Directory

2018-11-15 Thread eryk sun
On 11/14/18, Irv Kalb wrote: > > When working with data files, I tell students to put their project (their > main program and any other related files) in a folder. Then, in their calls > to "open", I tell them to just give the name of the data file e.g., > 'MyData.txt', or a path relative from th

Re: IDLE Default Working Directory

2018-11-14 Thread Irv Kalb
> On Nov 13, 2018, at 6:04 PM, Christman, Roger Graydon wrote: > > On 13 Nov 2018, at 09:51, Bev in TX wrote: > >> On Nov 12, 2018, at 5:50 PM, Terry Reedy wrote: >> >> For me, open (command-O) opens 'Documents'. I presume it should be easy >> enough to mov

Re: IDLE Default Working Directory

2018-11-14 Thread Bev in TX
Thanks for taking the time to respond, but I’m not certain that we are on the same page. Every time you start Idle, its File -> Open dialog points to the same default location (on MacOS that is ~/Documents). When you open a project’s file from another location, Idle remembers that new folder

Re: IDLE Default Working Directory

2018-11-14 Thread Brian Oney via Python-list
On Tue, 2018-11-13 at 10:33 -0600, Bev in TX wrote: > > On Nov 12, 2018, at 10:07 AM, Brian Oney > > wrote: > > On Mon, 2018-11-12 at 09:35 -0600, Bev in TX wrote: > > > I am not the OP and I’m on macOS — no shortcuts. How would one do the > > > same thing on other platforms? > > > Bev in TX >

Re: IDLE Default Working Directory

2018-11-13 Thread Christman, Roger Graydon
On 13 Nov 2018, at 09:51, Bev in TX wrote: > On Nov 12, 2018, at 5:50 PM, Terry Reedy wrote: > > For me, open (command-O) opens 'Documents'. I presume it should be easy > enough to move into a 'py' subfolder. The whole point is for Idle -> File -> Open (or comm

Re: IDLE Default Working Directory

2018-11-13 Thread Bev in TX
> On Nov 12, 2018, at 10:07 AM, Brian Oney wrote: > > On Mon, 2018-11-12 at 09:35 -0600, Bev in TX wrote: >> I am not the OP and I’m on macOS — no shortcuts. How would one do the same >> thing on other platforms? >> Bev in TX > Hello there, > > I am not an IDLE user. You may try a startup sc

Re: IDLE Default Working Directory

2018-11-13 Thread Bev in TX
> On Nov 12, 2018, at 5:50 PM, Terry Reedy wrote: > > For me, open (command-O) opens 'Documents'. I presume it should be easy > enough to move into a 'py' subfolder. The whole point is for Idle -> File -> Open (or command-O) to automatically open to a specific folder. Bev in TX -- h

Re: IDLE Default Working Directory

2018-11-12 Thread eryk sun
On 11/12/18, Thomas Jollans wrote: > On 13/11/2018 00:45, Terry Reedy wrote: >> >> On Windows, a simple alternate is a .bat file. I belive the folloiwing >> should work. >> >> cd c:/desired/startup/directory >> py -x.y -m idlelib >> >> The default for x.y is latest 3.x or latest 2.x if no 3.x. >

Re: IDLE Default Working Directory

2018-11-12 Thread Terry Reedy
On 11/12/2018 7:15 PM, Thomas Jollans wrote: On 13/11/2018 00:45, Terry Reedy wrote: On Windows, a simple alternate is a .bat file.  I belive the folloiwing should work. cd c:/desired/startup/directory py -x.y -m idlelib The default for x.y is latest 3.x or latest 2.x if no 3.x. Correct me

Re: IDLE Default Working Directory

2018-11-12 Thread Thomas Jollans
On 13/11/2018 00:45, Terry Reedy wrote: > > On Windows, a simple alternate is a .bat file.  I belive the folloiwing > should work. > > cd c:/desired/startup/directory > py -x.y -m idlelib > > The default for x.y is latest 3.x or latest 2.x if no 3.x. Correct me if I'm wrong, but won't that crea

Re: IDLE Default Working Directory

2018-11-12 Thread Terry Reedy
On 11/12/2018 10:35 AM, Bev in TX wrote: On Nov 12, 2018, at 9:16 AM, eryk sun wrote: On 11/12/18, Christman, Roger Graydon mailto:d...@psu.edu>> wrote: I looked in IDLE's own configuration menu, and didn't see anything there -- and I fear that I might have to fight some Windows settings so

Re: IDLE Default Working Directory

2018-11-12 Thread Terry Reedy
On 11/12/2018 2:28 PM, eryk sun wrote: On 11/12/18, Christman, Roger Graydon wrote: eryk sun responded: On 11/12/18, Christman, Roger Graydon wrote: I looked in IDLE's own configuration menu, and didn't see anything there -- and I fear that I might have to f

Re: IDLE Default Working Directory

2018-11-12 Thread eryk sun
On 11/12/18, Christman, Roger Graydon wrote: > eryk sun responded: > > On 11/12/18, Christman, Roger Graydon wrote: >> >> I looked in IDLE's own configuration menu, and didn't see anything there >> -- >> and I fear that I might have to fight some Windows settings

Re: IDLE Default Working Directory

2018-11-12 Thread Christman, Roger Graydon
eryk sun responded: On 11/12/18, Christman, Roger Graydon wrote: > > I looked in IDLE's own configuration menu, and didn't see anything there -- > and I fear that I might have to fight some Windows settings somewhere else > instead. I think this is Windows 10.

Re: IDLE Default Working Directory

2018-11-12 Thread Brian Oney via Python-list
On Mon, 2018-11-12 at 09:35 -0600, Bev in TX wrote: > On Nov 12, 2018, at 9:16 AM, eryk sun wrote: > > On 11/12/18, Christman, Roger Graydon mailto:d...@psu.edu>> > > wrote: > > > I looked in IDLE's own configuration menu, and didn't see anything there > > > -- > > > and I fear that I might have

Re: IDLE Default Working Directory

2018-11-12 Thread Bev in TX
On Nov 12, 2018, at 9:16 AM, eryk sun wrote: > > On 11/12/18, Christman, Roger Graydon mailto:d...@psu.edu>> > wrote: >> >> I looked in IDLE's own configuration menu, and didn't see anything there -- >> and I fear that I might have to fight some Windows settings somewhere else >> instead. I t

Re: IDLE Default Working Directory

2018-11-12 Thread eryk sun
On 11/12/18, Christman, Roger Graydon wrote: > > I looked in IDLE's own configuration menu, and didn't see anything there -- > and I fear that I might have to fight some Windows settings somewhere else > instead. I think this is Windows 10. Modify the "Start in" field of the IDLE shortcut. You

IDLE Default Working Directory

2018-11-12 Thread Christman, Roger Graydon
Could anyone tell me how to set up IDLE's default working directory, so that it would be in the same place for each startup? (Like C:\Users\myname\Python) I teach a course that mounts a lot of file space across the network and the default directory for all my students is a readonly directory,