import os from pathlib import Path # cli.py runs in /files, whereas our relative paths assume # the WD is . NOTE: Change this if cli.py is ever moved. os.chdir(Path(__file__).parent.parent) from .__main__ import app, db_session, cache from flask import g import files.helpers.cron