diff --git a/src/zathura_language_server/utils.py b/src/zathura_language_server/utils.py index 546fb96..54d5200 100644 --- a/src/zathura_language_server/utils.py +++ b/src/zathura_language_server/utils.py @@ -26,10 +26,9 @@ def get_query(name: str, filetype: FILETYPE = "zathurarc") -> Query: if name not in QUERIES: with open( os.path.join( - os.path.join( - os.path.join(os.path.dirname(__file__), "assets"), - "queries", - ), + os.path.dirname(__file__), + "assets", + "queries", f"{name}{os.path.extsep}scm", ) ) as f: @@ -49,10 +48,9 @@ def get_schema(filetype: FILETYPE = "zathurarc") -> dict[str, Any]: """ if filetype not in SCHEMAS: file = os.path.join( - os.path.join( - os.path.join(os.path.dirname(__file__), "assets"), - "json", - ), + os.path.dirname(__file__), + "assets", + "json", f"{filetype}.json", ) with open(file) as f: