use local gtk folder if present when building Windows binary

This commit is contained in:
Yann Leboulanger 2008-04-07 13:14:06 +00:00
parent db59de9397
commit 3679fe8cb8
1 changed files with 6 additions and 2 deletions

View File

@ -20,9 +20,13 @@
from distutils.core import setup from distutils.core import setup
import py2exe import py2exe
import glob 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',] includes = ['encodings', 'encodings.utf-8',]
opts = { opts = {