My code is simply as follows:
file = \'C:\\\\Exe\\\\First Version\\\\filename.exe\' os.system(file)
When I run this program, a Windows erro
Putting quotes around the path will work:
file = 'C:\\Exe\\First Version\\filename.exe' os.system('"' + file + '"')
but a better solution is to use the subprocess module instead:
subprocess
import subprocess file = 'C:\\Exe\\First Version\\filename.exe' subprocess.call([file])