--- pygobject-2.11.0/pygtk.py.fixdetection 2006-04-23 14:53:24.000000000 +0200 +++ pygobject-2.11.0/pygtk.py 2006-07-13 09:09:04.000000000 +0200 @@ -57,7 +57,10 @@ # skip empty directories if not os.listdir(pathname): continue - + # only accept directories containing gtk.py or gobject.so + if not glob.glob(os.path.join(pathname, "gtk.py")) and not glob.glob(os.path.join(pathname,"gobject.so")): + continue + if not versions.has_key(filename[-3:]): versions[filename[-3:]] = pathname return versions