diff --git a/ankisyncd/sync_app.py b/ankisyncd/sync_app.py index aa281e1..33dc3f0 100644 --- a/ankisyncd/sync_app.py +++ b/ankisyncd/sync_app.py @@ -617,7 +617,7 @@ class SqliteSessionManager(SimpleSessionManager): def __init__(self, session_db_path): SimpleSessionManager.__init__(self) - self.session_db_path = os.path.abspath(session_db_path) + self.session_db_path = os.path.realpath(session_db_path) def _conn(self): new = not os.path.exists(self.session_db_path) diff --git a/ankisyncd/users.py b/ankisyncd/users.py index 8c64c91..0cf732f 100644 --- a/ankisyncd/users.py +++ b/ankisyncd/users.py @@ -42,7 +42,7 @@ class SqliteUserManager(SimpleUserManager): def __init__(self, auth_db_path, collection_path=None): SimpleUserManager.__init__(self, collection_path) - self.auth_db_path = auth_db_path + self.auth_db_path = os.path.realpath(auth_db_path) def auth_db_exists(self): return os.path.isfile(self.auth_db_path)