Skip to content
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

Use public get_data_path for matplotlib hook #5568

Merged
merged 2 commits into from Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.