Skip to content

Commit

Permalink
Hooks: Use public get_data_path in matplotlib hook.
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. (#5567)
  • Loading branch information
richardsheridan committed Feb 19, 2021
1 parent b9fcbbf commit d20a75d
Showing 1 changed file with 1 addition 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

0 comments on commit d20a75d

Please sign in to comment.