Skip to content
Snippets Groups Projects
Commit c3be096b authored by nkour's avatar nkour
Browse files

fix pygtk.require() to work ok in GNU

parent e6754715
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment