I am calling an exe (which is dependent on other batch files) , Python is giving error.
I am able to call exe (which is independent)
what I am doing is..
import os
os.system("notepad.exe") # is working
but
os.system("c:/ank.exe") # this is giving error as ank.exe is dependent on other batch files
you have to first change the current directory so that the executable you want to run can find its dependencies:
otherwise,
os.system()executes in the directory of the running script.