Re: start external program from python

2009-10-12 Thread Jorgen Grahn
On Mon, 2009-10-12, Bjorn wrote: > > Hi, I woul like to start a program from within python (under linux): > This works fine: > > import os > path = 'tclsh AppMain.tcl hej.gb' > os.system(path) > > The file AppMain.tcl is the executable Not really -- tclsh is the executable from Python's and the sy

Re: start external program from python

2009-10-12 Thread TerryP
On Oct 12, 10:15 am, Bjorn wrote: > Hi, I woul like to start a program from within python (under linux): > This works fine: > > import os > path = 'tclsh AppMain.tcl hej.gb' > os.system(path) > > The file AppMain.tcl is the executable and the file hej.gb is a > textfile in the same directory. > Th

start external program from python

2009-10-12 Thread Bjorn
Hi, I woul like to start a program from within python (under linux): This works fine: import os path = 'tclsh AppMain.tcl hej.gb' os.system(path) The file AppMain.tcl is the executable and the file hej.gb is a textfile in the same directory. The text file gets opened in the app in the correct wa