Fixed an error in Windows version that put pid files in the wrong location (how come a Windows user didn't notice this one before?)

This commit is contained in:
Griatch 2015-03-07 20:27:12 +01:00
parent 94b8532f59
commit 1c298951d6
2 changed files with 6 additions and 8 deletions

View file

@ -535,6 +535,6 @@ ServerConfig.objects.conf("server_starting_mode", delete=True)
if os.name == 'nt':
# Windows only: Set PID file manually
with open(os.path.join(settings.GAME_DIR, 'server.pid'), 'w') as f:
with open(SERVER_PIDFILE, 'w') as f:
f.write(str(os.getpid()))