Moved import in portal.py to after the manual path insert (Windows only), which possibly increase Windows compatability.

This commit is contained in:
Griatch 2013-12-08 23:54:03 +01:00
parent 64a30c655d
commit 8b462b4934

View file

@ -7,15 +7,14 @@ sets up all the networking features. (this is done automatically
by game/evennia.py).
"""
import sys
import os
from src.server.webserver import EvenniaReverseProxyResource
if os.name == 'nt':
# For Windows batchfile we need an extra path insertion here.
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(
os.path.dirname(os.path.abspath(__file__))))))
import sys
import os
from src.server.webserver import EvenniaReverseProxyResource
from twisted.application import internet, service
from twisted.internet import protocol, reactor
from twisted.web import server