|
@@ -8,7 +8,6 @@ The port will need to be defined when the instance is inited.
|
|
|
|
|
|
|
|
import string, time, direct, inspect
|
|
import string, time, direct, inspect
|
|
|
from operator import itemgetter
|
|
from operator import itemgetter
|
|
|
-from direct.directnotify.DirectNotifyGlobal import directNotify
|
|
|
|
|
from direct.http import WebRequest
|
|
from direct.http import WebRequest
|
|
|
from socket import gethostname
|
|
from socket import gethostname
|
|
|
from direct.task.Task import Task
|
|
from direct.task.Task import Task
|
|
@@ -22,9 +21,6 @@ if platform == 'win32':
|
|
|
else:
|
|
else:
|
|
|
from linuxSystemInfo import SystemInformation
|
|
from linuxSystemInfo import SystemInformation
|
|
|
|
|
|
|
|
-if __debug__:
|
|
|
|
|
- notify = directNotify.newCategory('AIWebInterface')
|
|
|
|
|
-
|
|
|
|
|
class aiWebServer(SystemInformation):
|
|
class aiWebServer(SystemInformation):
|
|
|
def __init__(self, air, listenPort=8080):
|
|
def __init__(self, air, listenPort=8080):
|
|
|
SystemInformation.__init__(self)
|
|
SystemInformation.__init__(self)
|