Skip to content

Commit

Permalink
Merge pull request #167 from liormizr/Fix_lazy_import_overide
Browse files Browse the repository at this point in the history
Fix_lazy_import_overide
  • Loading branch information
liormizr committed Apr 11, 2024
2 parents ce3f057 + 066057c commit 952a61e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions s3path/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@


def _lazy_import_resources(name):
if name in sys.modules:
return sys.modules[name]
spec = importlib.util.find_spec(name)
loader = importlib.util.LazyLoader(spec.loader)
spec.loader = loader
Expand Down

0 comments on commit 952a61e

Please sign in to comment.