summaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-14 22:31:48 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-14 22:37:40 +0100
commit0fb08748e5285e5d4adc6135eec8889887a63299 (patch)
tree3a82c2899f33a8d4234b07799cff00865c8e141c /server.py
parentad12c67adcc8e3c0f29814b1b95959ac4b9f4a4d (diff)
use a python package instead of just modules
The package is contained in the CAO/ folder. server.py is still at the root of the repository though. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/server.py b/server.py
index 7391e8e..5d117e9 100755
--- a/server.py
+++ b/server.py
@@ -1,16 +1,16 @@
#!/usr/bin/env python
from websocket_server import WebsocketServer
-import CAO_GameManager
-import CAO_Client
-from CAO_Status import cao_error
+import CAO.GameManager
+import CAO.Client
+from CAO.Status import cao_error
import json
-game_manager = CAO_GameManager.CAO_GameManager()
+game_manager = CAO.GameManager.GameManager()
def new_client_handler(client, server):
- client['cao_client'] = CAO_Client.CAO_Client(server, client, game_manager)
+ client['cao_client'] = CAO.Client.Client(server, client, game_manager)
def client_left_handler(client, server):
client['cao_client'].disconnect();