Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/run.py
blob: cce0c653b693f08c1216eb63b8fc5a5808733007 (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 = '.'

# 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