fix prod. link
This commit is contained in:
parent
946afee3c1
commit
d700fb40e2
@ -23,7 +23,7 @@ def _build_pool_config(connection_data, pool_name, pool_size):
|
||||
return pool_config
|
||||
|
||||
|
||||
def initPool(instancePath, connection_filename="connection_data_devel.json",
|
||||
def initPool(instancePath, connection_filename="connection_data_prod.json",
|
||||
pool_name="brecal_pool", pool_size=10):
|
||||
"""
|
||||
Initialize the MySQL connection pool and load email credentials.
|
||||
@ -33,7 +33,7 @@ def initPool(instancePath, connection_filename="connection_data_devel.json",
|
||||
if config_path is None:
|
||||
config_path = os.path.join(instancePath, f'../../../secure/{connection_filename}')
|
||||
|
||||
config_path = 'C:\\temp\\connection_data_test.json'
|
||||
# config_path = 'C:\\temp\\connection_data_test.json'
|
||||
|
||||
print(config_path)
|
||||
if not os.path.exists(config_path):
|
||||
@ -54,10 +54,10 @@ def initPool(instancePath, connection_filename="connection_data_devel.json",
|
||||
finally:
|
||||
conn_from_pool.close()
|
||||
|
||||
credentials_file = "email_credentials_devel.json"
|
||||
credentials_file = "email_credentials_test.json"
|
||||
credentials_path = os.path.join(instancePath, f'../../../secure/{credentials_file}')
|
||||
|
||||
credentials_path = 'C:\\temp\\email_credentials_test.json'
|
||||
# credentials_path = 'C:\\temp\\email_credentials_test.json'
|
||||
|
||||
if not os.path.exists(credentials_path):
|
||||
print('cannot find ' + os.path.abspath(credentials_path))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user