fix pygtk.require() to work ok in GNU
This commit is contained in:
parent
e675471568
commit
c3be096bc3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue