Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib/server/flask/_app.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/server/flask/_app.py')
-rw-r--r--lib/server/flask/_app.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/server/flask/_app.py b/lib/server/flask/_app.py
index f4b8096..995c532 100644
--- a/lib/server/flask/_app.py
+++ b/lib/server/flask/_app.py
@@ -24,8 +24,9 @@ try:
BUNDLE = activity.get_bundle_path()
ROOT = activity.get_activity_root()
except Exception, e:
- BUNDLE = '.'
- ROOT = '.'
+ BUNDLE = os.path.abspath(os.path.join(
+ os.path.dirname(__file__), '..', '..', '..'))
+ ROOT = BUNDLE
# init app
app = flask.Flask(__name__)