corrected db url path
parent
1902e01265
commit
e505bf23a6
|
|
@ -1,3 +1,6 @@
|
||||||
|
### Project additions
|
||||||
|
*.db
|
||||||
|
|
||||||
### Python template
|
### Python template
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@ import os
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine
|
||||||
|
|
||||||
current_path = os.path.dirname(os.path.abspath(__file__))
|
current_path = os.path.dirname(os.path.abspath(__file__))
|
||||||
database_url = f'sqlite:///{current_path}data/dg_osm.db'
|
database_url = f'sqlite:///{current_path}/dg_osm.db'
|
||||||
engine = create_engine(database_url, echo=True)
|
engine = create_engine(database_url, echo=True)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue