mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-24 17:50:20 -06:00
Import config only when needed, it was causing cyclic dependency when
running the regression suite.
This commit is contained in:
parent
8435257e00
commit
6cc1fbe739
@ -13,11 +13,11 @@ import os
|
||||
|
||||
from flask_security import current_user, login_required
|
||||
|
||||
import config
|
||||
|
||||
|
||||
@login_required
|
||||
def get_storage_directory():
|
||||
import config
|
||||
if config.SERVER_MODE is not True:
|
||||
return None
|
||||
|
||||
@ -50,6 +50,7 @@ def get_storage_directory():
|
||||
|
||||
|
||||
def init_app(app):
|
||||
import config
|
||||
if config.SERVER_MODE is not True:
|
||||
return None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user