Resolve relative paths and symlinks before opening auth/session DB

This commit is contained in:
flan
2017-11-04 04:21:59 +01:00
parent 024e76423d
commit c9c02d3253
2 changed files with 2 additions and 2 deletions

View File

@@ -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)