In linux, I have a executable, that should be run like this: ./a.exe inputdata
I want to launch this executable in my python script, but I do not want to block the rest of the python code.
I tried soemthing like this, but
# launch sensor node
def launchA():
subprocess.Popen(["Path/a.exe", inputdata])
if __name__ == '__main__':
p = multiprocessing.Process(target=launchA,args=())
p.start()
print("sensorlaunched")
However, the luanchA process still blocks the print function.
What went wrong in my code? Thanks!
.exeextension on a Linux binary? That's heresy!