I've developed a python script on a Windows machine where at a point it calls another python script with some aruguments aswell.
script.py
value="bar"
id="foo"
os.system('"Main.py" %s %s' % (eqid, value))
main.py
name=sys.argv[1]
send=sys.argv[2]
This code works perfectly on Windows, and now im trying to run it on a Linux (Ubuntu) and im getting an error
sh 1: Main.py: not found
script.py and main.py are in the same directory asswell
What is wrong here? :/
main.pybut are callingMain.py. As well as the other suggestions, linux is case-sensitive so you should double check the case of the filename.