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)
PyMol waits the end of the program to screen a windows with my result and load new structure and cgo in PyMol, that's normal.
Is it possible that PyMol can go on and only when my program has finished, my plugin screens the results and load new structure in PyMoL.
I would like that we can use PyMoL in the meantime that my program is running.
Is it possible? I don't know how to put the thread for that...
Thank you for your help,