diff --git a/xppl/__init__.py b/xppl/__init__.py index 8a3ee52..c69d88b 100755 --- a/xppl/__init__.py +++ b/xppl/__init__.py @@ -7,14 +7,18 @@ from flask_socketio import SocketIO from flask_sqlalchemy import SQLAlchemy from sqlalchemy.dialects import registry -registry.register("rqlite.pyrqlite", "sqlalchemy_rqlite.pyrqlite", "dialect") +registry.register( + 'rqlite.pyrqlite', + 'sqlalchemy_rqlite.pyrqlite', + 'dialect' +) -basedir = os.path.abspath(os.path.dirname(__file__)) - -UPLOAD_FOLDER = os.path.join(basedir, 'uploads') -UPLOAD_FOLDER_COVER = os.path.join(basedir, 'cover') +BASEDIR = os.path.abspath(os.path.dirname(__file__)) +UPLOAD_FOLDER = os.path.join(BASEDIR, 'uploads') +UPLOAD_FOLDER_COVER = os.path.join(BASEDIR, 'cover') load_dotenv(find_dotenv()) + app = Flask(__name__) app.config['SECRET_KEY'] = 'super secret key'