seperated main

This commit is contained in:
2023-12-12 21:56:30 +01:00
parent 5d7ca9172b
commit 6bea0ee524
5 changed files with 39 additions and 22 deletions

15
src/config.py Normal file
View File

@@ -0,0 +1,15 @@
import yaml
config_file = "src/config.yml"
def get_config():
with open(file=config_file, mode='r') as file:
print(yaml.safe_load(file))
return Config(yaml.safe_load(file))
class Config:
def __init__(self, data):
self.src = data['src']
self.dst = data['dst']