Skip to content

Commit 13f0c38

Browse files
committed
"%w" is better
1 parent 9978bfd commit 13f0c38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

winpython/associate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ def register_in_registery(target, current=True, reg_type=winreg.REG_SZ, verbose=
133133
lost_entries.append((rf"Software\Classes\Python.NoConFile\shell\Edit with IDLE", None, None))
134134

135135
if Path(spyder_exe).exists():
136-
dynamic_entries.append((rf"Software\Classes\Python.File\shell\Edit with Spyder\command", None, f'"{spyder_exe}" "%1" -w "%~p1."'))
137-
dynamic_entries.append((rf"Software\Classes\Python.NoConFile\shell\Edit with Spyder\command", None, f'"{spyder_exe}" "%1" -w "%~p1."'))
136+
dynamic_entries.append((rf"Software\Classes\Python.File\shell\Edit with Spyder\command", None, f'"{spyder_exe}" "%1" -w "%w"'))
137+
dynamic_entries.append((rf"Software\Classes\Python.NoConFile\shell\Edit with Spyder\command", None, f'"{spyder_exe}" "%1" -w "%w"'))
138138
lost_entries.append((rf"Software\Classes\Python.File\shell\Edit with Spyder", None, None))
139139
lost_entries.append((rf"Software\Classes\Python.NoConFile\shell\Edit with Spyder", None, None))
140140

0 commit comments

Comments
 (0)