photofloat/scanner/floatapp/__init__.py
2018-11-30 01:28:24 +01:00

13 lines
287 B
Python

from flask import Flask
from flask_login import LoginManager
import os.path
app = Flask(__name__)
app.config.from_pyfile(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "app.cfg"))
login_manager = LoginManager()
import login
login_manager.setup_app(app)
import endpoints