summaryrefslogtreecommitdiff
path: root/build-aux/gen-thumbnailer.py
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/gen-thumbnailer.py')
-rw-r--r--build-aux/gen-thumbnailer.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/build-aux/gen-thumbnailer.py b/build-aux/gen-thumbnailer.py
index 9994043f9..05ac8218c 100644
--- a/build-aux/gen-thumbnailer.py
+++ b/build-aux/gen-thumbnailer.py
@@ -22,6 +22,10 @@ args = argparser.parse_args()
newenv = os.environ.copy()
newenv['GDK_PIXBUF_PIXDATA'] = args.pixdata
newenv['GDK_PIXBUF_MODULE_FILE'] = args.loaders
+# 'nt': NT-based Windows, see https://docs.python.org/3/library/os.html
+if os.name == 'nt':
+ gdk_pixbuf_dll_buildpath = os.path.dirname(args.pixdata)
+ newenv['PATH'] = gdk_pixbuf_dll_buildpath + os.pathsep + newenv['PATH']
cmd = args.printer