diff options
Diffstat (limited to 'moonv4/templates/moonforming/utils/config.py')
-rw-r--r-- | moonv4/templates/moonforming/utils/config.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/moonv4/templates/moonforming/utils/config.py b/moonv4/templates/moonforming/utils/config.py deleted file mode 100644 index 30c8ea4f..00000000 --- a/moonv4/templates/moonforming/utils/config.py +++ /dev/null @@ -1,22 +0,0 @@ -import yaml - - -def get_config_data(filename="moon.conf"): - data_config = None - for _file in ( - filename, - "conf/moon.conf", - "../moon.conf", - "../conf/moon.conf", - "/etc/moon/moon.conf", - ): - try: - data_config = yaml.safe_load(open(_file)) - except FileNotFoundError: - data_config = None - continue - else: - break - if not data_config: - raise Exception("Configuration file not found...") - return data_config |