Mercurial > hg > mercurial-crew-with-dirclash
view mercurial/demandload.py @ 1421:a7631cf1326a
Option -i broken in py2exe_for_demandload
Using the includes option -i on modified py2exe is
not working.
Change:
- setup.py: convert self.includes to a list.
author | Volker Kleinfeld <Volker.Kleinfeld@gmx.de> |
---|---|
date | Mon, 24 Oct 2005 14:52:30 -0700 |
parents | 3db700146536 |
children | f3abe0bdccdd |
line wrap: on
line source
def demandload(scope, modules): class d: def __getattr__(self, name): mod = self.__dict__["mod"] scope = self.__dict__["scope"] scope[mod] = __import__(mod, scope, scope, []) return getattr(scope[mod], name) for m in modules.split(): dl = d() dl.mod = m dl.scope = scope scope[m] = dl