Skip to content

Commit

Permalink
Update _lookup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fkiraly committed Oct 3, 2023
1 parent edc2014 commit cdf3d93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions skbase/lookup/_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ def _import_module(
imported_mod = importlib.import_module(module)
elif isinstance(module, importlib.machinery.SourceFileLoader):
spec = importlib.util.spec_from_loader(module.name, module)
spec.origin = module.path
imported_mod = importlib.util.module_from_spec(spec)
exc = None
except Exception as e:
Expand Down

0 comments on commit cdf3d93

Please sign in to comment.