Gave twistd.bat an absolute path for Windows installs. Resolves #681.

This commit is contained in:
Griatch 2015-03-02 20:06:37 +01:00
parent ed3d181297
commit d1c7111db1

View file

@ -692,7 +692,9 @@ def init_game_directory(path, check_db=True):
# batchfile in game/server, linking to the actual binary
global TWISTED_BINARY
TWISTED_BINARY = "twistd.bat"
# Windows requires us to use the absolute path for the bat file.
server_path = os.path.dirname(os.path.abspath(__file__))
TWISTED_BINARY = os.path.join(server_path, "twistd.bat")
# add path so system can find the batfile
sys.path.insert(1, os.path.join(GAMEDIR, SERVERDIR))