473,396 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Spawning a new UI process

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 myapp.py" 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
like:

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

followed by one of:

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

The only result I've gotten is a Python interpreter is started, but
the GUI app that should be launched by 'main.py' 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

Nov 9 '08 #1
0 977

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: brolewis | last post by:
I am writing a program on Windows (XP Pro) that as part of the application takes advantage of rsync's ability to synchronize a client and server computer. However, because of the nature of our...
2
by: Dave Kirby | last post by:
I am working on a network management program written in python that has multiple threads (typically 20+) spawning subprocesses which are used to communicate with other systems on the network. This...
1
by: Russ Green | last post by:
I hav previosuly had VB.NET 2003 Standard installed on my machine and it works great. Yesterday I installed C++.NET 2003 Standard and starting playing with it. Hardly surprisingly it also worked...
1
by: Sanjay Kedare | last post by:
Hi, How safe it is to spawn a thread to do some routine job from Application_Start event of ASP.NET Also whenever the ASPNET worker process restarts, will the Application_Start event be...
4
by: Marianne | last post by:
Had 1.1 configured so that a process I was launching on a web server would have access to a domain controller in a different domain. This was accomplished by setting the <processModel> tag in...
7
by: kris_scheyer | last post by:
Hi, I have a little .exe file that I want the C# code behind of my web application to execute as a different user. The executable is supposed to take a screenshot of the server's display and...
5
by: Jeremy | last post by:
I have a core VB service that monitors a database, and based on data in the records will execute code to send email notifications. Problem: I don't want my main program code to halt and wait for...
2
by: Remulac | last post by:
I'm trying to execute a DOS program from within VB.NET. Of course, I used to simply use Shell(), but that doesn't seem to work even when I import the VisualBasic namespace. Here's the code I'm...
6
by: jobs | last post by:
Im writing an SSIS script task using VB.NET. I'd like to be able to initiate an oracle stored procedure call for a process that will run for 8 hours, but I don't want my process to wait for it...
12
by: bhunter | last post by:
Hi, I've used subprocess with 2.4 several times to execute a process, wait for it to finish, and then look at its output. Now I want to spawn the process separately, later check to see if it's...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.