From 9856ac735d4812a98d121424f653b5c69bec523e Mon Sep 17 00:00:00 2001 From: Griatch Date: Fri, 2 Sep 2016 23:14:14 +0200 Subject: [PATCH] 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?). --- evennia/server/evennia_launcher.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/evennia/server/evennia_launcher.py b/evennia/server/evennia_launcher.py index 15af6f522..1a0a1afd5 100644 --- a/evennia/server/evennia_launcher.py +++ b/evennia/server/evennia_launcher.py @@ -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))