MarseyWorld/files/cli.py

18 lines
455 B
Python
Raw Normal View History

from .__main__ import app, db_session, cache
from flask import g
import files.helpers.cron
import os
from pathlib import Path
# cli.py runs in <repo-root>/files, whereas our relative paths assume
# the WD is <repo-root>. NOTE: Change this if cli.py is ever moved.
os.chdir(Path(__file__).parent.parent)
#from flask_migrate import Migrate
#from flask_sqlalchemy import SQLAlchemy
#import files.classes
#db = SQLAlchemy(app)
#migrate = Migrate(app, db)