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.
2 parents e4149d2 + b7bd8fe commit d1d89b4Copy full SHA for d1d89b4
winpython/qthelpers.py
@@ -48,7 +48,7 @@
48
49
import os
50
import re
51
-import os.path as osp
+# import os.path as osp
52
from pathlib import Path
53
import sys
54
@@ -157,10 +157,12 @@ def _process_mime_path(path, extlist):
157
path = path[5:]
158
else:
159
path = path[7:]
160
- if osp.exists(path):
+ # if osp.exists(path):
161
+ if Path(path).exists():
162
if (
163
extlist is None
- or osp.splitext(path)[1] in extlist
164
+ #or osp.splitext(path)[1] in extlist
165
+ or Path(path).suffix in extlist
166
):
167
return path
168
0 commit comments