[F] Fix path

This commit is contained in:
Hykilpikonna
2021-12-18 02:17:02 -05:00
parent d0513be33f
commit e1dcf7d821
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -126,3 +126,4 @@ dmypy.json
*.synctex.gz
notes/
menubot/menu_bot_token.txt
+1 -1
View File
@@ -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']