Skip to content

Commit

Permalink
Allows for having ~ or ~user in the path given by realpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Pseudonium committed Sep 2, 2020
1 parent 6be042f commit 6e10afb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions obsidian_to_anki.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,11 @@ def parse(self):
class Config:
"""Deals with saving and loading the configuration file."""

CONFIG_PATH = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
"obsidian_to_anki_config.ini"
CONFIG_PATH = os.path.expanduser(
os.path.join(
os.path.dirname(os.path.realpath(__file__)),
"obsidian_to_anki_config.ini"
)
)

def update_config():
Expand Down

0 comments on commit 6e10afb

Please sign in to comment.