removed some absolute paths for portability
This commit is contained in:
@@ -10,4 +10,5 @@ services:
|
|||||||
# give access to the system time as read-only
|
# give access to the system time as read-only
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /mnt/dietpi_userdata/kwaylon:/usr/app
|
- ./src:/usr/app/src
|
||||||
|
- ./data:/usr/app/data
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class Kwaylon(Client):
|
|||||||
def __init__(self, limit: int = 5000, days: int = 30, db_path: Path = None, *args, **kwargs):
|
def __init__(self, limit: int = 5000, days: int = 30, db_path: Path = None, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
if db_path is None:
|
if db_path is None:
|
||||||
self.db_path = Path.cwd() / 'data' / 'messages.db'
|
self.db_path = Path(__file__).parents[2] / 'data' / 'messages.db'
|
||||||
else:
|
else:
|
||||||
self.db_path = db_path
|
self.db_path = db_path
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user