-
Notifications
You must be signed in to change notification settings - Fork 0
/
gps.py
25 lines (19 loc) · 944 Bytes
/
gps.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
########################################################################################################################
# Copyright (C) 2023-present celsius narhwal <hello@celsiusnarhwal.dev> #
# This notice may not be altered or removed except by or with the express written permission of the copyright holder. #
# For more information, see the COPYING file. #
########################################################################################################################
from path import Path
class Routes(Path):
"""
A reliable accessor for certain top-level directories.
"""
@classmethod
def root(cls):
return cls(__file__).parent
@classmethod
def bot(cls):
return cls.root() / "bot"
@classmethod
def kurisu(cls):
return cls.root() / "kurisu"