blob: 3709078559ab68be3924febe6a85378afa7e9b8c (
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
BUNDLE = activity.get_bundle_path()
except Exception, e:
BUNDLE = os.path.dirname(__file__)
# add lib path to current python path
sys.path.append(os.path.join(BUNDLE, 'lib'))
# import server first
from server import Server
# nutriweb import
from nutrinoweb.controllers import app
# simple server entry point
if __name__ == "__main__":
# init the server
Server()
# while ....
while True:
continue
|