MCPcopy Create free account
hub / github.com/ImGoodBai/MapGoGoGo / db_path

Function db_path

backend/app/db.py:11–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def db_path() -> Path:
12 configured = os.environ.get("MAPGAME_DB")
13 if not configured:
14 return ROOT_DIR / "data" / "mapgame.sqlite"
15 path = Path(configured)
16 return path if path.is_absolute() else ROOT_DIR / path
17
18
19def connect() -> sqlite3.Connection:

Callers 1

connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected