Skip to content

Commit

Permalink
Use public get_data_path for matplotlib hook (pyinstaller#5568)
Browse files Browse the repository at this point in the history
Private _get_data_path was removed in matplotlib-3.4.0rc1.
This change simply removes the underscore to use the public
version. (pyinstaller#5567)
  • Loading branch information
richardsheridan authored and orenadav committed Jul 26, 2021
1 parent 0de3e80 commit a20381a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PyInstaller/hooks/hook-matplotlib.py
Expand Up @@ -13,7 +13,7 @@
from PyInstaller.utils.hooks import exec_statement

mpl_data_dir = exec_statement(
"import matplotlib; print(matplotlib._get_data_path())")
"import matplotlib; print(matplotlib.get_data_path())")

datas = [
(mpl_data_dir, "matplotlib/mpl-data"),
Expand Down
3 changes: 3 additions & 0 deletions news/5568.bugfix.rst
@@ -0,0 +1,3 @@
Remove dependence on a `private function
<https://github.com/matplotlib/matplotlib/commit/e1352c71f07aee7eab004b73dd9bda2a260ab31b>`_
removed in ``matplotlib`` 3.4.0rc1.

0 comments on commit a20381a

Please sign in to comment.