Launching scripts in Ubuntu ?

Stef Mientki stef.mientki at gmail.com
Tue Oct 14 06:01:59 EDT 2008


hello,

I'm not familiar with Linux / Ubuntu,
still trying to get my application working under these operating systems.

I've a script  "file_support.py",
now when I'm in Ubuntu, open a command window and go to the directory 
where that file is,
I can launch the script with :
  "python file_support.py"
and it works great

Now when I want to run the script from another script, let's call it  " 
test.py"
where this is the contents of test.py:

import subprocess
subprocess.Popen ( [ 'python', 'file_support.py', ] )

The script "file_support"  is executed correctly,
but the python interpreter is not closed,
I've to close it manual by pressing ENTER.

What should I change ?

thanks,
Stef Mientki



More information about the Python-list mailing list