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.
2 parents 863158b + cdae6c0 commit 799ab40Copy full SHA for 799ab40
1 file changed
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