start external program from python

Bjorn bjornjobb at gmail.com
Mon Oct 12 06:15:30 EDT 2009


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 way.

I wonder if I could pass information from the clipboard to the
AppMain.tcl instead of the file hej.gb ?
I use wxPython.
any comment is appreciated!
/bjorn



More information about the Python-list mailing list