Further refactoring towards #1176.

This commit is contained in:
Griatch 2017-02-02 00:02:58 +01:00
parent 09245589f5
commit a9f08760cc
4 changed files with 14 additions and 11 deletions

View file

@ -32,6 +32,7 @@ from evennia.server.webserver import EvenniaReverseProxyResource
PORTAL_SERVICES_PLUGIN_MODULES = [mod_import(module) for module in make_iter(settings.PORTAL_SERVICES_PLUGIN_MODULES)]
LOCKDOWN_MODE = settings.LOCKDOWN_MODE
PORTAL_PIDFILE = ""
if os.name == 'nt':
# For Windows we need to handle pid files manually.
PORTAL_PIDFILE = os.path.join(settings.GAME_DIR, "server", 'portal.pid')

View file

@ -38,6 +38,7 @@ from evennia.server.sessionhandler import SESSIONS
_SA = object.__setattr__
SERVER_PIDFILE = ""
if os.name == 'nt':
# For Windows we need to handle pid files manually.
SERVER_PIDFILE = os.path.join(settings.GAME_DIR, "server", 'server.pid')