Skip to content

Commit 6e10afb

Browse files
author
Rubaiyat Khondaker
committed
Allows for having ~ or ~user in the path given by realpath
1 parent 6be042f commit 6e10afb

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

obsidian_to_anki.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,11 @@ def parse(self):
219219
class Config:
220220
"""Deals with saving and loading the configuration file."""
221221

222-
CONFIG_PATH = os.path.join(
223-
os.path.dirname(os.path.realpath(__file__)),
224-
"obsidian_to_anki_config.ini"
222+
CONFIG_PATH = os.path.expanduser(
223+
os.path.join(
224+
os.path.dirname(os.path.realpath(__file__)),
225+
"obsidian_to_anki_config.ini"
226+
)
225227
)
226228

227229
def update_config():

0 commit comments

Comments
 (0)