From 0838f71f0cb36527f9b8e3710aa956c65ae565a8 Mon Sep 17 00:00:00 2001 From: newwingbird Date: Sun, 17 Nov 2024 17:54:02 +0900 Subject: [PATCH] fix mistakes --- comtypes/client/_code_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comtypes/client/_code_cache.py b/comtypes/client/_code_cache.py index 25c90344..f5d226ce 100644 --- a/comtypes/client/_code_cache.py +++ b/comtypes/client/_code_cache.py @@ -58,7 +58,7 @@ def _find_gen_dir(): # dll created with py2exe path = _get_module_filename(sys.frozendllhandle) base = os.path.splitext(os.path.basename(path))[0] - subdir = f"Python\\Python{pymaj:d}{pymin:d}\\comtypes_cache" + subdir = f"comtypes_cache\\{base}-{pymaj:d}{pymin:d}" basedir = tempfile.gettempdir() else: # ftype in ('windows_exe', 'console_exe')