I want from this script to run another python script (scriptA.py)
I tried
process = subprocess.popen(cmd, stdout=subprocess.PIPE)
and then iter on the output lines..
and also tried this solution https://gist.github.com/kirpit/1306188
but not really sure how to implement it..
I want to open scriptA.py using code from the main file (subprocess.popen etc) but to open it on another thread from the main file.. because they both need to do things in parallel..
scriptA.py will pull information from an android device.. and SM will issue commands to the same device according to the output from scriptA.py..
Any ideas?
Thanks