diff --git a/macos/deploy.py b/macos/deploy.py index 8c2e9788..6c17bcab 100644 --- a/macos/deploy.py +++ b/macos/deploy.py @@ -112,5 +112,5 @@ def copy_and_install_name_tool(src, dest): module_dir = f"{RESOURCEDIR}/lib/gdk-pixbuf-2.0/{pixbuf_ver}" with open(f"{module_dir}/loaders.cache", 'w') as cachefile: - cache = subprocess.check_output(['gdk-pixbuf-query-loaders']).decode() + cache = subprocess.check_output(['gdk-pixbuf-query-loaders'], env=dict(os.environ, GDK_PIXBUF_MODULEDIR=pixbuf_dir)).decode() cachefile.write(re.sub(f'{PREFIX}/.+/gdk-pixbuf-2.0/', '@executable_path/../Resources/lib/gdk-pixbuf-2.0/', cache))