From 2b851db71fcaff943a2742d4d8d52e2f2facd9cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 5 Mar 2020 00:22:19 +0100 Subject: [PATCH] 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 --- bin/tryton | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/tryton b/bin/tryton index 40c51d9411..22f294e978 100755 --- a/bin/tryton +++ b/bin/tryton @@ -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