This commit is contained in:
Kovid Goyal 2020-07-24 13:07:56 +05:30
parent 9b386b6a46
commit bc90617eec
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -106,7 +106,7 @@ def font_dirs():
paths = {os.path.normcase(r'C:\Windows\Fonts')} paths = {os.path.normcase(r'C:\Windows\Fonts')}
for which in (winutil.CSIDL_FONTS, winutil.CSIDL_LOCAL_APPDATA, winutil.CSIDL_APPDATA): for which in (winutil.CSIDL_FONTS, winutil.CSIDL_LOCAL_APPDATA, winutil.CSIDL_APPDATA):
try: try:
path = winutil.special_folder_path(winutil.CSIDL_FONTS) path = winutil.special_folder_path(which)
except ValueError: except ValueError:
continue continue
if which != winutil.CSIDL_FONTS: if which != winutil.CSIDL_FONTS: