From cfaa915866f91a3d0efd8690f9e618f142e5d315 Mon Sep 17 00:00:00 2001 From: stonebig Date: Fri, 28 Oct 2022 18:21:26 +0200 Subject: [PATCH] repair legacy registering --- winpython/associate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/winpython/associate.py b/winpython/associate.py index cecc5231..8b45c148 100644 --- a/winpython/associate.py +++ b/winpython/associate.py @@ -15,6 +15,7 @@ import sys import os import os.path as osp +from pathlib import Path import subprocess @@ -42,7 +43,8 @@ def _get_shortcut_data(target, current=True): wpgroup = utils.create_winpython_start_menu_folder( current=current ) - wpdir = osp.join(target, os.pardir) + # wpdir = osp.join(target, os.pardir) + wpdir = str(Path(target).parent) data = [] for name in os.listdir(wpdir): bname, ext = osp.splitext(name)