[F] Fix path
This commit is contained in:
@@ -126,3 +126,4 @@ dmypy.json
|
||||
*.synctex.gz
|
||||
|
||||
notes/
|
||||
menubot/menu_bot_token.txt
|
||||
|
||||
+1
-1
@@ -103,7 +103,7 @@ def filter_menu(menu: dict[str, list[MenuItem]]) -> dict[str, list[MenuItem]]:
|
||||
|
||||
if __name__ == '__main__':
|
||||
# Find telegram token
|
||||
path = Path(os.path.abspath(__file__))
|
||||
path = Path(os.path.abspath(__file__)).parent
|
||||
db_path = path.joinpath('menu_bot_database.json')
|
||||
if 'tg_token' in os.environ:
|
||||
tg_token = os.environ['tg_token']
|
||||
|
||||
Reference in New Issue
Block a user