fix... database?

This commit is contained in:
Nexus 2023-03-20 18:01:44 +00:00
parent dcbf7f895e
commit 63f62b4107
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -37,9 +37,11 @@ __all__ = [
T = TypeVar("T") T = TypeVar("T")
T_co = TypeVar("T_co", covariant=True) T_co = TypeVar("T_co", covariant=True)
_pth = "main.db"
if Path("/data").exists(): if Path("/data").exists():
_pth = "/data/main.db" _pth = "/data/main.db"
else:
_pth = "/./main.db"
try: try:
Path(_pth).touch() Path(_pth).touch()
except PermissionError as e: except PermissionError as e: