comparison mercurial/demandimport.py @ 9458:ffeaf5ba25d8

demandimport: blacklist gtk Demandimport breaks gtk. You get a meaningless error about 'failed loading gobject\_gobject.pyd'. Mercurial does not use gtk, but this trips up many extension writers.
author Steve Borho <steve@borho.org>
date Thu, 17 Sep 2009 17:39:43 -0500
parents fb66a7d3f28f
children ecd0a5c8bbe5
comparison
equal deleted inserted replaced
9456:c564dbb2a6d5 9458:ffeaf5ba25d8
125 'pwd', 125 'pwd',
126 'grp', 126 'grp',
127 # imported by profile, itself imported by hotshot.stats, 127 # imported by profile, itself imported by hotshot.stats,
128 # not available under Windows 128 # not available under Windows
129 'resource', 129 'resource',
130 # this trips up many extension authors
131 'gtk',
130 ] 132 ]
131 133
132 def enable(): 134 def enable():
133 "enable global demand-loading of modules" 135 "enable global demand-loading of modules"
134 __builtin__.__import__ = _demandimport 136 __builtin__.__import__ = _demandimport