Fix plugins import on windows (#223)

Fixes #217
This commit is contained in:
bakatrouble 2019-02-28 00:27:50 +03:00 committed by Dan
parent 567e9611df
commit b0c011c70c

View File

@ -1139,7 +1139,7 @@ class Client(Methods, BaseClient):
if include is None:
for path in sorted(Path(root).rglob("*.py")):
module_path = os.path.splitext(str(path))[0].replace("/", ".")
module_path = '.'.join(path.parent.parts + (path.stem,))
module = import_module(module_path)
for name in vars(module).keys():