From 2dd24160a9fcac4070b9d9acefad64e238611e0a Mon Sep 17 00:00:00 2001 From: Andreas Demmelbauer Date: Thu, 20 May 2021 16:24:30 +0200 Subject: [PATCH] fix config path --- demotape.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demotape.py b/demotape.py index c51b52d..f7a1b9a 100644 --- a/demotape.py +++ b/demotape.py @@ -13,8 +13,10 @@ import asyncio import concurrent.futures import ntpath 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) try: