removed some absolute paths for portability
This commit is contained in:
@@ -23,7 +23,7 @@ class Kwaylon(Client):
|
||||
def __init__(self, limit: int = 5000, days: int = 30, db_path: Path = None, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
if db_path is None:
|
||||
self.db_path = Path.cwd() / 'data' / 'messages.db'
|
||||
self.db_path = Path(__file__).parents[2] / 'data' / 'messages.db'
|
||||
else:
|
||||
self.db_path = db_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user