cli.py: fix startup operations using wrong WD.

master
Snakes 2022-09-19 23:26:43 -04:00
parent 6e3e05c6e1
commit dbef81316d
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,3 @@
from .__main__ import app, db_session, cache
from flask import g
import files.helpers.cron
import os
from pathlib import Path
@ -9,6 +5,10 @@ from pathlib import Path
# the WD is <repo-root>. 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
#from flask_migrate import Migrate
#from flask_sqlalchemy import SQLAlchemy
#import files.classes