From: John H. <jdh...@ac...> - 2004-11-09 15:03:04
|
Steve> I changed the code in cvs to import pygtk if not hasattr(sys, 'frozen'): pygtk.require('2.0') Steve> I think that should fix it. Perhaps it would be better to define a constant in matplotlib.__init__.py, something like matplotlib.PY2EXE = hasattr(sys, 'frozen') because then the code which is conditional upon py2exe would be more readable if not matplotlib.PY2EXE pygtk.require('2.0') or something like that... JDH |