Change config into main file

This commit is contained in:
Yam ZhengLim
2022-09-25 17:44:36 +08:00
parent 24d468270e
commit e85eec9d3c
3 changed files with 2 additions and 19 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ def exchange_extract(EXCHANGE_CSV_TEMP_STORAGE_PATH):
print("/config/",EX_MYSQL_CONFIG_FILE)
#Read config file
EX_MYSQL_CONFIG = general_function.read_json_file("./config/",EX_MYSQL_CONFIG_FILE)
EX_SQL_DICT = general_function.read_json_file("./config/",EX_SQL_FILE)
EX_MYSQL_CONFIG = general_function.read_json_file(EX_MYSQL_CONFIG_FILE)
EX_SQL_DICT = general_function.read_json_file(EX_SQL_FILE)
#Connect to mysql
EX_MYSQLDB = ex_extract_func.connect_mysql(EX_MYSQL_CONFIG)