Launching scripts in Ubuntu ?

Diez B. Roggisch deets at nospam.web.de
Tue Oct 14 06:37:25 EDT 2008


Stef Mientki wrote:

> 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 do you mean "it's not closed"? Which window is taking the enter, and
how do you run test.py? 

Diez



More information about the Python-list mailing list