Re: [Tutor] subprocess and launching an editor

2007-06-22 Thread Alan Gauld
"Jason Massey" <[EMAIL PROTECTED]> wrote > gedit launches with a blank file called window1. The python shell > is now > waiting for gedit to exit before it does anything else. > > 2nd console > --- import subprocess subprocess.call('gedit --new-window window2',shell=True) >

Re: [Tutor] subprocess and launching an editor

2007-06-22 Thread Alan Gauld
"Brian van den Broek" <[EMAIL PROTECTED]> wrote > gedit is the default text editor on my ubuntu feisty system, so in > the > first instance, I've tried to do this with gedit. The > subprocess.call: > > >>> subprocess.call("gedit somefilename", shell=True) > You should probably check the VISUAL

Re: [Tutor] subprocess and launching an editor

2007-06-22 Thread Jason Massey
I'm running Feisty as well. I launched python in two separate consoles and tried this: 1st console import subprocess subprocess.call('gedit --new-window window1',shell=True) gedit launches with a blank file called window1. The python shell is now waiting for gedit to exit be

[Tutor] subprocess and launching an editor

2007-06-22 Thread Brian van den Broek
Hi all, I want to have a script launch an editor open to a particular file and wait until that editor has closed before continuing. The aim is to allow the user to make edits to the file, have to script know that the edits are completed, and then make use of the newly saved file contents. gedi