Browse Source

fix config path

master
Andreas Demmelbauer 3 years ago
parent
commit
2dd24160a9
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      demotape.py

+ 3
- 1
demotape.py View File

@@ -13,8 +13,10 @@ import asyncio
import concurrent.futures import concurrent.futures
import ntpath import ntpath
import yaml import yaml
from pathlib import Path


with open(r'config.yaml') as file:
config_path = Path(__file__).parent / './config.yaml'
with config_path.open() as file:
config = yaml.load(file, Loader=yaml.FullLoader) config = yaml.load(file, Loader=yaml.FullLoader)


try: try:


Loading…
Cancel
Save