initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user