Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7fc3e1

Browse files
authored
Merge pull request #1132 from stonebig/master
repair legacy registering
2 parents 935547e + cfaa915 commit b7fc3e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

winpython/associate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import sys
1616
import os
1717
import os.path as osp
18+
from pathlib import Path
1819
import subprocess
1920

2021

@@ -42,7 +43,8 @@ def _get_shortcut_data(target, current=True):
4243
wpgroup = utils.create_winpython_start_menu_folder(
4344
current=current
4445
)
45-
wpdir = osp.join(target, os.pardir)
46+
# wpdir = osp.join(target, os.pardir)
47+
wpdir = str(Path(target).parent)
4648
data = []
4749
for name in os.listdir(wpdir):
4850
bname, ext = osp.splitext(name)

0 commit comments

Comments
 (0)