Skip to content

Commit

Permalink
Update SQLiteConnection.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rogervila committed Jun 28, 2023
1 parent e56ca4f commit 09188ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions equipment/framework/Connection/SQLiteConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ def connect(self) -> bool:
schema = self.config.get(self.name, 'schema')
path = self.config.get(self.name, 'path')
db = path if path == self.memory else os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'../../',
os.path.join(os.getcwd(), '../') if os.path.isfile(os.path.join(os.getcwd(), 'alembic.ini')) else os.getcwd(),
path
)

Expand Down

0 comments on commit 09188ae

Please sign in to comment.