Skip to content
Snippets Groups Projects
Verified Commit adec86ae authored by Simon Sebastian Humpohl's avatar Simon Sebastian Humpohl
Browse files

Only load packages lazily in alias

parent 6bf93aa3
No related branches found
No related tags found
1 merge request!46Use lazy_import
"""This is the new name of the qutil module which is just an alias to qutil for backwards compatibility reasons.""" """This is the new name of the qutil module which is just an alias to qutil for backwards compatibility reasons."""
import sys import sys
import qutil import lazy_loader
from qutil import * import qutil
__all__ = qutil.__all__
__version__ = qutil.__version__ __version__ = qutil.__version__
__all__ = qutil.__all__
for module_name in qutil.__all__:
globals()[module_name] = lazy_loader.load(f'qutil.{module_name}')
sys.modules[__name__] = qutil sys.modules[__name__] = qutil
del qutil del qutil
del lazy_loader
del sys del sys
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment