This is stemming from a previous question I asked last night here. In the matplotlib API there is the following call to return the path to matplotlib data:
matplotlib.get_data_path()
Where does this path come from? I printed the Python environment variables using:
print(os.environ)
and I do not find a similar path. There is nothing that I can see within the matplotlib API to change this path, like a matplotlib.set_data_path() method. My problem is that the Navigation Toolbar icons (using a GTK backend) from a frozen script (using PyInstaller) are not showing up on some computers, and the culprit seems to be this path not being correct. Any assistance would be appreciated.
matplotlib.data_path?get_data_path. My best guess is that the absolute path gets logged and then frozen. Maybe this could be resolved through monkey patching to log the relative path? Maybe removing the decorator would do the trick, too, as then the absolute path is never frozen.