blob: 63140e6126082dac09896ef4604a146da3899174 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# python import
import os, sys
# sugar or debug root path factory
try:
from sugar.activity import activity
ROOT_PATH = activity.get_bundle_path()
except Exception, e:
ROOT_PATH = '.'
# add lib path to current python path
sys.path.append(os.path.join(ROOT_PATH, 'lib'))
# import server first
from server import Server
# ..
from atoideweb import controllers
# simple server entry point
if __name__ == "__main__":
# init the server
Server()
# while ....
while True:
continue
|