I have written a python script which calls a .exe file and run it.
import subprocess
path = "C:\Tools\file.exe"
subprocess.Popen(path)
When I execute my Python file on windows, it run successfully but when I try to run the same script on Cygwin, it does not execute.
Can some one help me telling what is command on cygwin to run a file??
Under Cygwin you find the C:\ Drive under /cygdrive/c. You should try something like this:
import subprocess
path = "/cygdrive/c/Tools/file.exe"
subprocess.Popen(path)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With