22 lines
428 B
Python
22 lines
428 B
Python
import os
|
|
|
|
import yaml
|
|
|
|
CONFIG_FILE = os.environ.get('CONFIG_FILE', "config.yml")
|
|
|
|
if CONFIG_FILE is None:
|
|
raise ValueError('CONFIG_FILE environment variable is not set')
|
|
elif not os.path.exists(CONFIG_FILE):
|
|
raise ValueError(f'CONFIG_FILE {CONFIG_FILE} does not exist')
|
|
|
|
with open(CONFIG_FILE, 'r') as config_file:
|
|
config = yaml.safe_load(config_file)
|
|
|
|
|
|
def main():
|
|
pass
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|