From 3679fe8cb80905a0292d4461bc665307ed285184 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 7 Apr 2008 13:14:06 +0000 Subject: [PATCH] use local gtk folder if present when building Windows binary --- setup_win32.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup_win32.py b/setup_win32.py index 92cc7fd81..2fad85f3d 100644 --- a/setup_win32.py +++ b/setup_win32.py @@ -20,9 +20,13 @@ from distutils.core import setup import py2exe import glob -import sys +import sys +import os -sys.path.append('src') +sys.path.append('src') +# Use local gtk folder instead of the one in PATH that is not latest gtk +if 'gtk' in os.listdir('.'): + sys.path.append('gtk/bin') includes = ['encodings', 'encodings.utf-8',] opts = {