Commit 93386271 by arun.uday

update application_config.py with exceptions

parent 1e967cbf
# Reading the conf file # Reading the conf file
import configparser import configparser
from scripts.constants.app_constants import exception_msg
# config object # config object
config = configparser.RawConfigParser() try:
config.read("conf/application.conf") config = configparser.RawConfigParser()
config.read("conf/application.conf")
# reading paths from conf file
path_excel = config.get("file_path", "excel_path")
path_time = config.get("file_path", "json_time")
path_pivot = config.get("file_path", "json_pivot")
path_melt = config.get("file_path", "json_melt")
path_merge = config.get("file_path", "json_merge")
# reading paths from conf file # reading date format from conf file
path_excel = config.get("file_path", "excel_path") date_format = config.get("Date_format", "date_format")
path_time = config.get("file_path", "json_time") except Exception as e:
path_pivot = config.get("file_path", "json_pivot") print(f'{exception_msg} {e}')
path_melt = config.get("file_path", "json_melt")
path_merge = config.get("file_path", "json_merge")
# reading date format from conf file
date_format = config.get("Date_format", "date_format")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment