Thanks to visit codestin.com Credit goes to github.com
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 a7d9384 commit 53a070eCopy full SHA for 53a070e
lib/matplotlib/animation.py
@@ -735,10 +735,17 @@ def _init_from_registry(cls):
735
0, winreg.KEY_QUERY_VALUE | flag)
736
binpath = winreg.QueryValueEx(hkey, 'BinPath')[0]
737
winreg.CloseKey(hkey)
738
- binpath += r'\convert.exe'
739
break
740
except Exception:
741
binpath = ''
+ if binpath:
742
+ for exe in ('convert.exe', 'magick.exe'):
743
+ path = os.path.join(binpath, exe)
744
+ if os.path.exists(path):
745
+ binpath = path
746
+ break
747
+ else:
748
+ binpath = ''
749
rcParams[cls.exec_key] = rcParamsDefault[cls.exec_key] = binpath
750
751
@classmethod
0 commit comments