mirror of
https://github.com/vondas-network/videobeaux.git
synced 2025-12-18 22:00:01 +01:00
refactored programs and arg structure
This commit is contained in:
8
utils/load_config.py
Normal file
8
utils/load_config.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import yaml
|
||||
from pathlib import Path
|
||||
|
||||
config_file = Path(__file__).parent.parent / "config.yaml"
|
||||
|
||||
def load_config():
|
||||
with open(config_file, 'r') as file:
|
||||
return yaml.safe_load(file)
|
||||
Reference in New Issue
Block a user