8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65bb6e commit 294a732Copy full SHA for 294a732
winpython/qthelpers.py
@@ -48,7 +48,6 @@
48
49
import os
50
import re
51
-# import os.path as osp
52
from pathlib import Path
53
import sys
54
@@ -62,7 +61,6 @@
62
61
63
def get_icon(name):
64
"""Return QIcon from icon name"""
65
- # return QIcon(osp.join(config.IMAGE_PATH, name))
66
return QIcon(str(Path(config.IMAGE_PATH) / name))
67
68
@@ -157,11 +155,9 @@ def _process_mime_path(path, extlist):
157
155
path = path[5:]
158
156
else:
159
path = path[7:]
160
- # if osp.exists(path):
161
if Path(path).exists():
162
if (
163
extlist is None
164
- #or osp.splitext(path)[1] in extlist
165
or Path(path).suffix in extlist
166
):
167
return path
0 commit comments