From 57923bdbc7af6525f14ea262fea7789259935892 Mon Sep 17 00:00:00 2001 From: Griatch Date: Fri, 2 Sep 2016 22:10:04 +0200 Subject: [PATCH] Fix an install error in Windows due to the Twisted Windows executable changing name from twistd.py to twistd.exe. --- evennia/server/evennia_launcher.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evennia/server/evennia_launcher.py b/evennia/server/evennia_launcher.py index d9a4814ace..15af6f522d 100644 --- a/evennia/server/evennia_launcher.py +++ b/evennia/server/evennia_launcher.py @@ -909,9 +909,11 @@ def init_game_directory(path, check_db=True): # note that we hope the twistd package won't change here, since we # try to get to the executable by relative path. + # Update: In 2016, it seems Twisted 16 has changed the name of + # of its executable from 'twistd.py' to 'twistd.exe'. twistd_path = os.path.abspath( os.path.join(twistd_dir, os.pardir, os.pardir, os.pardir, - os.pardir, 'scripts', 'twistd.py')) + os.pardir, 'scripts', 'twistd.exe')) with open(batpath, 'w') as bat_file: # build a custom bat file for windows