From 30342eafd844db10c59841019d8a6e9b8fc52920 Mon Sep 17 00:00:00 2001 From: kuba Date: Mon, 26 Aug 2024 12:55:40 +0200 Subject: [PATCH] fix mypy errors --- spotdl/console/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spotdl/console/web.py b/spotdl/console/web.py index 8b846c50c..56171fd7c 100644 --- a/spotdl/console/web.py +++ b/spotdl/console/web.py @@ -80,7 +80,7 @@ def web(web_settings: WebOptions, downloader_settings: DownloaderOptions): gui_repo, output_dir=str(web_app_dir), ) - web_app_dir = os.path.join(web_app_dir, "dist") + web_app_dir = Path(os.path.join(web_app_dir, "dist")).resolve() elif web_settings["web_gui_location"]: web_app_dir = Path(web_settings["web_gui_location"]).resolve() logger.info("Using custom web app location: %s", web_app_dir) @@ -88,7 +88,7 @@ def web(web_settings: WebOptions, downloader_settings: DownloaderOptions): logger.info( "Using cached web app. To update use the `--force-update-gui` flag." ) - web_app_dir = os.path.join(web_app_dir, "dist") + web_app_dir = Path(os.path.join(web_app_dir, "dist")).resolve() app_state.api = FastAPI( title="spotDL",