fixes
This commit is contained in:
parent
da0287ae6e
commit
2857c8693a
@ -42,7 +42,7 @@ def create_app(test_config=None):
|
||||
|
||||
|
||||
logging.basicConfig(filename='brecal.log', level=logging.DEBUG, format='%(asctime)s | %(name)s | %(levelname)s | %(message)s')
|
||||
local_db.initPool(app.instance_path)
|
||||
local_db.initPool(os.path.dirname(app.instance_path))
|
||||
logging.info('App started')
|
||||
|
||||
return app
|
||||
|
||||
@ -10,7 +10,7 @@ def initPool(instancePath):
|
||||
try:
|
||||
global config_path
|
||||
if(config_path == None):
|
||||
config_path = os.path.join(instancePath,'../../../../secure/connection_data_test.json');
|
||||
config_path = os.path.join(instancePath,'../../../secure/connection_data_test.json');
|
||||
|
||||
print (config_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user