mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 10:03:40 +01:00
fix... database?
This commit is contained in:
parent
dcbf7f895e
commit
63f62b4107
1 changed files with 3 additions and 1 deletions
|
@ -37,9 +37,11 @@ __all__ = [
|
|||
T = TypeVar("T")
|
||||
T_co = TypeVar("T_co", covariant=True)
|
||||
|
||||
_pth = "main.db"
|
||||
if Path("/data").exists():
|
||||
_pth = "/data/main.db"
|
||||
else:
|
||||
_pth = "/./main.db"
|
||||
|
||||
try:
|
||||
Path(_pth).touch()
|
||||
except PermissionError as e:
|
||||
|
|
Loading…
Reference in a new issue