Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Spawning a new UI process

Thread Tools

Spawning a new UI process

Ed Leafe
Posts: n/a
I'm working on a wxPython app (well, a Dabo app, but it's basically
the same thing) that presents the user with a selection of several
wxPython apps that exist on their system. They choose one, and I want
to then "launch" that app, as if they had typed "python" from
a terminal window. The initial app can either terminate or continue;
that's not terribly important. The important thing is to get the
selected app to run in a separate process.

I've tried all the variants of os.spawn* and os.exec*, without
success. Either nothing happens, or a Python interpreter is opened in
the Terminal window I used to run the launcher. I want to do something

cd (appdir)
pth = os.path.join(os.getcwd(), "")

followed by one of:

os.spawnl(os.P_NOWAIT, "")
os.spawnl(os.P_NOWAIT, pth)
os.spawnl(os.P_NOWAIT, "python", pth)
os.spawnl(os.P_NOWAIT, "python", "")
os.spawnl(os.P_NOWAIT, "/usr/bin/python", pth)
os.spawnl(os.P_NOWAIT, "/usr/bin/python", "")

The only result I've gotten is a Python interpreter is started, but
the GUI app that should be launched by '' is never run.

So what am I missing? How do I launch a python app in a separate
process from another Python app?

-- Ed Leafe

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spawning process from Java gives deadlock for standard output Java 8 05-24-2006 08:36 PM
spawning a process from webform1 Ashish ASP .Net 0 07-11-2005 10:37 PM
Spawning a process with ASP.NET 2.0 beta 2 Marianne ASP .Net 4 07-07-2005 11:09 AM
CGI script: release browser after spawning new process Prachi Perl Misc 7 05-18-2005 10:59 PM
Error Spawning Process from ASP.NET ASP .Net 4 02-08-2005 04:37 PM