mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Gave twistd.bat an absolute path for Windows installs. Resolves #681.
This commit is contained in:
parent
ed3d181297
commit
d1c7111db1
1 changed files with 3 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue