forked from MarseyWorld/MarseyWorld
cli.py: fix startup operations using wrong WD.
parent
6e3e05c6e1
commit
dbef81316d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue