Add gitignore

This commit is contained in:
Yam ZhengLim
2022-08-18 12:15:36 +08:00
parent 4e84b6f93d
commit 0c79e9c8df
4 changed files with 23 additions and 7 deletions
@@ -1,11 +1,16 @@
from ntpath import join
from operator import concat
import pandas as pd
import mysql.connector
import json
import os
import csv
#Get all the Compulsory File
CURRENT_DIRECTORY_PATH = "\\python_el\\extract\\exchange_extract"
MYSQL_CONFIG_FILE = "EXCHANGE_CONFIG.json"
SQL_FILE = "EXCHANGE_EXTRACT_SQL.json"
CSV_STORAGE_PATH = "exchange_temp_extract_csv/"
#Function
def change_directory_to(path):
try:
current_directory = os.getcwd()
@@ -55,11 +60,7 @@ def write_to_csv(path,dbname,tablename,cursor,data):
print("[FUNCTION_ERROR]-write_to_csv:" , filename)
#Get all the Compulsory File
CURRENT_DIRECTORY_PATH = "\\python_el\\extract\\exchange_extract"
MYSQL_CONFIG_FILE = "EXCHANGE_CONFIG.json"
SQL_FILE = "EXCHANGE_EXTRACT_SQL.json"
CSV_STORAGE_PATH = "exchange_temp_extract_csv/"
#_______________MAIN_________________
#Change directory & open all file
change_directory_to(CURRENT_DIRECTORY_PATH)