The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit 552fa129 authored by Vincent A's avatar Vincent A

weboob compat: prepend our compatibility Finder instead of append

If we append, "weboob.x" will not be resolved by regular Finders so our
custom finder will be hit. However, for importing "weboob.x.y", standard
Finders will find something, basing on "weboob.x.__spec__", and eventually
duplicating python modules, precisely what we wanted to avoid.
To ensure our custom Finder is called even for "weboob.x.y", prepend it.
parent 2a616af0
...@@ -56,4 +56,4 @@ def find_module(self, fullname, path=None): ...@@ -56,4 +56,4 @@ def find_module(self, fullname, path=None):
return AliasLoader() return AliasLoader()
sys.meta_path.append(AliasImporter()) sys.meta_path.insert(0, AliasImporter())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment