Re: [Pyobjc-dev] NSApplicationMain idiom: wish to standardize
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-03-22 18:36:25
|
Ronald Oussoren wrote: > That doesn't mean I'm not interested in speeding up PyObjC. I'm not > much into import hacks, so how would one cause the creation of a > custom module-like object when doing 'import AppKit'? Does this > entrail creating an importhook, or is replacing sys.modules['AppKit'] > from inside AppKit/__init__.py sufficient? The latter is sufficient. Supporting __getattr__ and having an __all__ attribute is all that's needed, if I recall correctly. For a package directory it should have a __path__ attribute. Just |