Import config only when needed, it was causing cyclic dependency when
running the regression suite.pull/3/head
parent
8435257e00
commit
6cc1fbe739
|
@ -13,11 +13,11 @@ import os
|
||||||
|
|
||||||
from flask_security import current_user, login_required
|
from flask_security import current_user, login_required
|
||||||
|
|
||||||
import config
|
|
||||||
|
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
def get_storage_directory():
|
def get_storage_directory():
|
||||||
|
import config
|
||||||
if config.SERVER_MODE is not True:
|
if config.SERVER_MODE is not True:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -50,6 +50,7 @@ def get_storage_directory():
|
||||||
|
|
||||||
|
|
||||||
def init_app(app):
|
def init_app(app):
|
||||||
|
import config
|
||||||
if config.SERVER_MODE is not True:
|
if config.SERVER_MODE is not True:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue