Merge pull request #1495 from j-t-1/rsplit

Use rsplit instead of split
This commit is contained in:
ikelos
2024-12-30 12:24:40 +00:00
committed by GitHub
@@ -15,5 +15,5 @@ import os
import sys
# This is necessary to ensure the core plugins are available, whilst still be overridable
parent_module, module_name = ".".join(__name__.split(".")[:-1]), __name__.split(".")[-1]
parent_module, module_name = __name__.rsplit(".", maxsplit=1)
__path__ = [os.path.join(x, module_name) for x in sys.modules[parent_module].__path__]