python - How do I launch a function and wait/don't wait on it depending on whether it's a GUI application? -
I am looking for a python function which is the Windows Command Interpreter cmd.exe when it ends To do is to wait for the new launch process. Right now I am using os.system () but this function is always blocked, even while launching GUI applications (which, if they were written in C / C ++ , Were related to WinMain function and / SUBSYSTEM: WINDOWS ).
Which code should I use to launch external processes I do function to block while launching console applications, but I not < / Em> Want to block it while launching GUI applications?
You can write a small cover / extension that checks the subsystem ( ImageNtHeader By using ), if everything fails, you can parse the PE header directly.
Comments
Post a Comment