Re: calling a .exe from Python

2008-06-25 Thread evidentemente.yo
Thank you for the help!!!:) On 25 jun, 10:32, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > evidentemente.yo <[EMAIL PROTECTED]> wrote: > >  On 24 jun, 14:32, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > > > Probably what you want is this... > > > > from subprocess import call > > > > rc = call(["

Re: calling a .exe from Python

2008-06-25 Thread Nick Craig-Wood
evidentemente.yo <[EMAIL PROTECTED]> wrote: > On 24 jun, 14:32, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > > Probably what you want is this... > > > > from subprocess import call > > > > rc = call(["mypath/myfile.exe",arg1,arg2]) > > > > rc will contain the exit status > > > > See the subprocess

Re: calling a .exe from Python

2008-06-25 Thread evidentemente.yo
Hey, thank you very much!!!:D Would it matter if my .exe doesn't return any value? would it return like an "ok" or something??? On 24 jun, 14:32, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > evidentemente.yo <[EMAIL PROTECTED]> wrote: > >  Hi, i am trying to call a .exe from my .py file, i have f

Re: calling a .exe from Python

2008-06-24 Thread Nick Craig-Wood
evidentemente.yo <[EMAIL PROTECTED]> wrote: > Hi, i am trying to call a .exe from my .py file, i have found the exec > function, but i'm not sure of how to use it:S > > would it be f.e.: > > execl (mypath/myfile.exe,myfile,arg1,arg2,...) > > > > Another question is, when i call my .e

Re: calling a .exe from Python

2008-06-24 Thread MRAB
On Jun 24, 10:50 am, "evidentemente.yo" <[EMAIL PROTECTED]> wrote: > Hi, i am trying to call a .exe from my .py file, i have found the exec > function, but i'm not sure of how to use it:S > > would it be f.e.: > > execl (mypath/myfile.exe,myfile,arg1,arg2,...) > > > > Another question is, when

calling a .exe from Python

2008-06-24 Thread evidentemente.yo
Hi, i am trying to call a .exe from my .py file, i have found the exec function, but i'm not sure of how to use it:S would it be f.e.: execl (mypath/myfile.exe,myfile,arg1,arg2,...) Another question is, when i call my .exe with exec, i understand that my .py file will stop running, and ins

calling a .exe from Python

2008-06-24 Thread yoevidentemente
Hi, i am trying to call a .exe from my .py file, i have found the exec function, but i'm not sure of how to use it:S would it be f.e.: execl (mypath/myfile.exe,myfile,arg1,arg2,...) Another question is, when i call my .exe with exec, i understand that my .py file will stop running, and ins