Python Launch Exe File Error
I have written a .exe file in C# and it works fine if I launch it manually by hand (double clicking) but everytime I tried to open it with python. import os os.system(''D:\\XX\My
Solution 1:
Okay I found the culprit. So I have a string like this: It should look at the current directory for the file "Updates.dat". However for some reasons, if I launch the exe via Python. It couldn't recognize the ".\" but if i manually run it , it's fine. This really puzzles me.
const String LocalUpdateFile = @".\Updates.dat";
So, instead if I change to this. The python launched exe works fine.
const String LocalUpdateFile = @"D:\XX\Updates.dat";
But I am really curious why this is happening.. If anyone has any solution, please let me know.
Thanks!
Post a Comment for "Python Launch Exe File Error"