Put gdk-pixbuf loaders in PATH under win32 freeze

The loaders may depend on external dll that are now stored in the same
directory by cx_Freeze 5.0.

issue8902
review282991002
This commit is contained in:
Cédric Krier committed 2020-03-05 00:22:19 +01:00
1 parent 2ad8093aba
commit 2b851db71f
1 file changed
+3
+3
View File
@@ -32,7 +32,10 @@ if hasattr(sys, 'frozen'):
if sys.platform == 'win32':
# cx_freeze >= 5 put python modules under lib directory
# and dependencies of gdk-pixbuf loaders
sys.path.append(os.path.join(prefix, 'lib'))
sys.path.append(os.path.join(
prefix, 'lib', 'gdk-pixbuf-2.0', '2.10.0', 'loaders'))
# On first launch the MacOSX app launcher may append an extra unique
# argument starting with -psn_. This must be filtered to not crash the