Skip to content

Simplify lookup of animation external commands. #11229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2018

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented May 11, 2018

... by using shutil.which instead of trying to run the command.

Also, we don't need to explicitly call
ImageMagickBase._init_from_registry because the writers.register
decorator will do that for us (via the call to isAvailable).

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

... by using shutil.which instead of trying to run the command.

Also, we don't need to explicitly call
ImageMagickBase._init_from_registry because the writers.register
decorator will do that for us (via the call to isAvailable).
@tacaswell tacaswell added this to the v3.0 milestone May 11, 2018
@@ -772,8 +754,6 @@ def isAvailable(cls):
cls._init_from_registry()
return super().isAvailable()

ImageMagickBase._init_from_registry()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't we need this any more?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐑 read the whole PR top matter.

@tacaswell tacaswell merged commit c20b0c2 into matplotlib:master May 11, 2018
@anntzer anntzer deleted the animationbin branch May 11, 2018 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants