Remove the use of the python executable when calling twistd.exe in the windows twistd batch file. Interestingly, running python on a Windows executable (as opposed to a python script file) works fine for some (Win7?) while causing errors of a non-recognized file type for others (Win10?).

This commit is contained in:
Griatch 2016-09-02 23:14:14 +02:00
parent 57923bdbc7
commit 9856ac735d

View file

@ -917,8 +917,7 @@ def init_game_directory(path, check_db=True):
with open(batpath, 'w') as bat_file:
# build a custom bat file for windows
bat_file.write("@\"%s\" \"%s\" %%*" % (
sys.executable, twistd_path))
bat_file.write("@\"%s\" %%*" % twistd_path)
print(INFO_WINDOWS_BATFILE.format(twistd_path=twistd_path))