Skip to content

Commit

Permalink
Fix AutoImport when .ropefolder path may not be the current working d…
Browse files Browse the repository at this point in the history
…irectory
  • Loading branch information
lieryan committed May 20, 2022
1 parent 112d523 commit b9739fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rope/contrib/autoimport/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(self, project: Project, observe=True, underlined=False, memory=True
if memory or project.ropefolder is None:
db_path = ":memory:"
else:
db_path = f"{project.ropefolder.path}/autoimport.db"
db_path = str(pathlib.Path(project.ropefolder.real_path) / "autoimport.db")
self.connection = sqlite3.connect(db_path)
self._setup_db()
if observe:
Expand Down

0 comments on commit b9739fd

Please sign in to comment.