Hi Thomas,
And than you sooo much !
I put 2# and 3# in a function that I launched with a daemon thread function
and yea it works
It works magically so well!
while True: "Many Many Many thanks for your help!"
Thank you so much Thomas :-)
Ed'
On Tue, Aug 28, 2012 at 6:21 PM, Thomas
Hi Ed,
you need to put 2# and 3# into the function foo() and call foo_async().
If you like you can send me your plugin and I'll have a look at it.
Cheers,
Thomas
Mister Vanhalen wrote, On 08/28/12 18:02:
> Many thanks for you answer Thomas!
>
> But I feel I didn't explained clearly my probl
Many thanks for you answer Thomas!
But I feel I didn't explained clearly my problem.
With your code, my problem is now to know when my program finished.
My plugin is organized like that :
1 # here it is the main of the plugin
2 # launch of my external program
3 # treatment of result of prog
Hi Ed,
this is possible. Example:
def foo(a, b, c):
command = "./myprogramm arg1 arg2"
process = subprocess.Popen(command, shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
process.wait()
def foo_async(a, b, c):
import threading
t = threading.Thread(target=foo, ar
Hi PyMoLers,
I need to launch an external program through a plugin. When I launch my
program by my button in my interface (the plugin) through this usual code :
command = "./myprogramm arg1 arg2"
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
proce