summaryrefslogtreecommitdiff
path: root/pastepy/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pastepy/__init__.py')
-rw-r--r--pastepy/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pastepy/__init__.py b/pastepy/__init__.py
new file mode 100644
index 0000000..0cc4db6
--- /dev/null
+++ b/pastepy/__init__.py
@@ -0,0 +1,8 @@
+from flask import Flask
+
+app = Flask(__name__)
+app.config.from_pyfile('pastepy.cfg')
+
+with app.app_context():
+ from .pastepy import app as pastepy
+ app.register_blueprint(pastepy)