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:
parent
57923bdbc7
commit
9856ac735d
1 changed files with 1 additions and 2 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue