From 13f0c385a40ae0887f60d6a7ea1a402b19ec320e Mon Sep 17 00:00:00 2001 From: stonebig Date: Sat, 17 May 2025 18:38:15 +0200 Subject: [PATCH] "%w" is better --- winpython/associate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winpython/associate.py b/winpython/associate.py index b3a2eb85..7825ce48 100644 --- a/winpython/associate.py +++ b/winpython/associate.py @@ -133,8 +133,8 @@ def register_in_registery(target, current=True, reg_type=winreg.REG_SZ, verbose= lost_entries.append((rf"Software\Classes\Python.NoConFile\shell\Edit with IDLE", None, None)) if Path(spyder_exe).exists(): - dynamic_entries.append((rf"Software\Classes\Python.File\shell\Edit with Spyder\command", None, f'"{spyder_exe}" "%1" -w "%~p1."')) - dynamic_entries.append((rf"Software\Classes\Python.NoConFile\shell\Edit with Spyder\command", None, f'"{spyder_exe}" "%1" -w "%~p1."')) + dynamic_entries.append((rf"Software\Classes\Python.File\shell\Edit with Spyder\command", None, f'"{spyder_exe}" "%1" -w "%w"')) + dynamic_entries.append((rf"Software\Classes\Python.NoConFile\shell\Edit with Spyder\command", None, f'"{spyder_exe}" "%1" -w "%w"')) lost_entries.append((rf"Software\Classes\Python.File\shell\Edit with Spyder", None, None)) lost_entries.append((rf"Software\Classes\Python.NoConFile\shell\Edit with Spyder", None, None))