fixed database connection reference
This commit is contained in:
parent
ccef84e119
commit
fe2499707d
@ -11,7 +11,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_prod.json');
|
||||
|
||||
print (config_path)
|
||||
|
||||
@ -39,4 +39,4 @@ def getPoolConnection():
|
||||
global config_path
|
||||
f = open(config_path);
|
||||
connection_data = json.load(f)
|
||||
return mysql.connector.connect(**connection_data)
|
||||
return mysql.connector.connect(**connection_data)
|
||||
|
||||
Reference in New Issue
Block a user