From 38c3d392c9c612a870c76c968a83bfbb249c10cc Mon Sep 17 00:00:00 2001 From: Rubaiyat Khondaker Date: Wed, 2 Sep 2020 14:26:36 +0100 Subject: [PATCH] Hotfix - hopefully fixed accessing config files There was a problem on a macOS system - hopefully this fixes it. --- obsidian_to_anki.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/obsidian_to_anki.py b/obsidian_to_anki.py index 14629b81..b5d6b1c0 100644 --- a/obsidian_to_anki.py +++ b/obsidian_to_anki.py @@ -219,7 +219,10 @@ def parse(self): class Config: """Deals with saving and loading the configuration file.""" - CONFIG_PATH = os.path.dirname(__file__) + "/obsidian_to_anki_config.ini" + CONFIG_PATH = os.path.join( + os.path.dirname(__file__), + "obsidian_to_anki_config.ini" + ) def update_config(): """Update config with new notes."""