From 32b25f912d6d438b3b796964c7e5dc7002a687db Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Thu, 13 May 2021 21:30:52 -0600 Subject: [PATCH] Remove with_stem() usage to support Python 3.8 --- scripts/wk/kit/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/wk/kit/tools.py b/scripts/wk/kit/tools.py index 895c9470..bed41823 100644 --- a/scripts/wk/kit/tools.py +++ b/scripts/wk/kit/tools.py @@ -81,7 +81,7 @@ def download_tool(folder, name): # Get ARCH specific URL if available if name_arch in SOURCES: source_url = SOURCES[name_arch] - out_path = out_path.with_stem(name_arch) + out_path = out_path.with_name(f'{name_arch}{out_path.suffix}') else: source_url = SOURCES[name] @@ -153,7 +153,7 @@ def get_tool_path(folder, name, check=True): tool_path = bin_dir.joinpath(f'{folder}/{name_arch}.exe') if not (tool_path.exists() or name_arch in SOURCES): # Use "default" path instead - tool_path = tool_path.with_stem(name) + tool_path = tool_path.with_name(f'{name}.exe') # Missing? if check and not tool_path.exists():