fix pygtk.require() to work ok in GNU

This commit is contained in:
Nikos Kouremenos 2005-08-16 11:55:29 +00:00
parent e675471568
commit c3be096bc3
1 changed files with 3 additions and 3 deletions

View File

@ -24,6 +24,9 @@ exec python -OOt "$0" ${1+"$@"}
import sys
import pygtk
import os
if not os.name == 'nt': # py2exe only in windows
pygtk.require('2.0') # py2exe fails on this
try:
import gtk
except RuntimeError, msg:
@ -33,9 +36,6 @@ except RuntimeError, msg:
import gobject
import pango
import os
if not os.name == 'nt': # py2exe only in windows
pygtk.require('2.0') # py2exe fails on this
import sre
import signal
import getopt