Re: Run a python script as an exe and run a new process from it

2009-02-27 Thread Paddy O'Loughlin
2009/2/27 venutaurus...@gmail.com : > Thanks for the reply,, >            I am trying to use the above application using psexec()in > command line.But it failed returning the error message > >  exited with error code 255. > >              But when I ran the application normally it worked > fine.Do

Re: Run a python script as an exe and run a new process from it

2009-02-26 Thread venutaurus...@gmail.com
On Feb 26, 11:14 pm, "Paddy O'Loughlin" wrote: > Try this as an outline: > script1.py > from subprocess import Popen > > if __name__ == '__main__': >         scriptname = "script2.py" > >         Popen("python %s" % scriptname, shell=True) > >         print "I'm done" > > script2.py > fr

Re: Run a python script as an exe and run a new process from it

2009-02-26 Thread Paddy O'Loughlin
Try this as an outline: script1.py from subprocess import Popen if __name__ == '__main__': scriptname = "script2.py" Popen("python %s" % scriptname, shell=True) print "I'm done" script2.py from time import sleep if __name__ == '__main__': while (True):

Re: Run a python script as an exe and run a new process from it

2009-02-26 Thread Gabriel Genellina
En Thu, 26 Feb 2009 13:32:27 -0200, venutaurus...@gmail.com escribió: On Feb 26, 7:47 pm, Tim Wintle wrote: On Thu, 2009-02-26 at 06:00 -0800, venutaurus...@gmail.com wrote: > Thanks for the reply, >            Being a newbie to python, I am finding it difficult to > understand the logic ev

Re: Run a python script as an exe and run a new process from it

2009-02-26 Thread venutaurus...@gmail.com
On Feb 26, 7:47 pm, Tim Wintle wrote: > On Thu, 2009-02-26 at 06:00 -0800, venutaurus...@gmail.com wrote: > > Thanks for the reply, > >            Being a newbie to python, I am finding it difficult to > > understand the logic even after thorough reading of comments. Is there > > any simpler way w

Re: Run a python script as an exe and run a new process from it

2009-02-26 Thread Tim Wintle
On Thu, 2009-02-26 at 06:00 -0800, venutaurus...@gmail.com wrote: > Thanks for the reply, >Being a newbie to python, I am finding it difficult to > understand the logic even after thorough reading of comments. Is there > any simpler way where I can just run a python script from the main

Re: Run a python script as an exe and run a new process from it

2009-02-26 Thread Bret Fledderjohn
2009/2/26 venutaurus...@gmail.com > On Feb 26, 7:00 pm, "venutaurus...@gmail.com" > wrote: > > On Feb 26, 6:10 pm, Tim Wintle wrote: > > > > > > > > > On Thu, 2009-02-26 at 04:55 -0800, venutaurus...@gmail.com wrote: > > > > Hello all, > > > >I've a strange requirement where I need

Re: Run a python script as an exe and run a new process from it

2009-02-26 Thread venutaurus...@gmail.com
On Feb 26, 7:00 pm, "venutaurus...@gmail.com" wrote: > On Feb 26, 6:10 pm, Tim Wintle wrote: > > > > > On Thu, 2009-02-26 at 04:55 -0800, venutaurus...@gmail.com wrote: > > > Hello all, > > >            I've a strange requirement where I need to run a python > > > script just as we run an exe (by

Re: Run a python script as an exe and run a new process from it

2009-02-26 Thread venutaurus...@gmail.com
On Feb 26, 6:10 pm, Tim Wintle wrote: > On Thu, 2009-02-26 at 04:55 -0800, venutaurus...@gmail.com wrote: > > Hello all, > >            I've a strange requirement where I need to run a python > > script just as we run an exe (by double clicking through windows > > explorer or by typing the script

Re: Run a python script as an exe and run a new process from it

2009-02-26 Thread Tim Wintle
On Thu, 2009-02-26 at 04:55 -0800, venutaurus...@gmail.com wrote: > Hello all, >I've a strange requirement where I need to run a python > script just as we run an exe (by double clicking through windows > explorer or by typing the script name at command prompt). I don't know how windows

Run a python script as an exe and run a new process from it

2009-02-26 Thread venutaurus...@gmail.com
Hello all, I've a strange requirement where I need to run a python script just as we run an exe (by double clicking through windows explorer or by typing the script name at command prompt). In that process I should be able to execute another python script in such a way that, the second s