Show More
@@ -24,7 +24,7 b' These imports will not be delayed:' | |||
|
24 | 24 | b = __import__(a) |
|
25 | 25 | ''' |
|
26 | 26 | |
|
27 | import __builtin__ | |
|
27 | import __builtin__, os | |
|
28 | 28 | _origimport = __import__ |
|
29 | 29 | |
|
30 | 30 | nothing = object() |
@@ -167,7 +167,8 b' def isenabled():' | |||
|
167 | 167 | |
|
168 | 168 | def enable(): |
|
169 | 169 | "enable global demand-loading of modules" |
|
170 | __builtin__.__import__ = _demandimport | |
|
170 | if os.environ.get('HGDEMANDIMPORT') != 'disable': | |
|
171 | __builtin__.__import__ = _demandimport | |
|
171 | 172 | |
|
172 | 173 | def disable(): |
|
173 | 174 | "disable global demand-loading of modules" |
General Comments 0
You need to be logged in to leave comments.
Login now