Skip to content
Snippets Groups Projects
Commit 358fad94 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

bugfix for import_from

parent e7b22837
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ tmp/
*.bak
*.swp
*~.nib
tests/lock
.idea/**
.coverage
.vagrant
......
# v2.2.12
* _TBA_
* bugfix where import_from would not pass all parameters to child calls
# v2.2.11
......
......@@ -52,7 +52,9 @@ def import_from(path: tp.List[str], package_prefix: str, all_: tp.List[str],
module.__all__ = mod_all
import_from([os.path.join(path[0], modname)], package_prefix + '.' + modname, mod_all,
module.__dict__, recursive=recursive,
fail_on_attributerror=fail_on_attributerror),
fail_on_attributerror=fail_on_attributerror, create_all=create_all,
skip_not_having_all=skip_not_having_all,
skip_single_underscores=skip_single_underscores),
locals[modname] = module
if modname not in all_:
all_.append(modname)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment