Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qutil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
QuTech
qutil
Commits
adec86ae
Verified
Commit
adec86ae
authored
Oct 21, 2022
by
Simon Sebastian Humpohl
Browse files
Options
Downloads
Patches
Plain Diff
Only load packages lazily in alias
parent
6bf93aa3
No related branches found
No related tags found
1 merge request
!46
Use lazy_import
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
qutech_util/__init__.py
+9
-3
9 additions, 3 deletions
qutech_util/__init__.py
with
9 additions
and
3 deletions
qutech_util/__init__.py
+
9
−
3
View file @
adec86ae
"""
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment