I'm not able to start an executable from a variable path. I've tried:
os.system(destPath + '/BHC.exe')
os.system(destPath/BHC.exe)
the destPath is set correctly and the BHC.exe is in there.
How can I start the external program?
I'm not able to start an executable from a variable path. I've tried:
os.system(destPath + '/BHC.exe')
os.system(destPath/BHC.exe)
the destPath is set correctly and the BHC.exe is in there.
How can I start the external program?
Use os.path.join
to avoid any slash confusion:
os.system(os.path.join(destPath, 'BHC.exe'))
If that doesn't resolve the problem, further troubleshooting is best answered by running an outside program (executable) in python?