Small fix for Python 3.3, 3.4

stix2.0
Emmanuelle Vargas-Gonzalez 2017-10-26 12:39:27 -04:00
parent 8c56adda21
commit 9aefa61153
1 changed files with 1 additions and 1 deletions

View File

@ -124,5 +124,5 @@ def _collect_stix2_obj_maps():
for module_loader, name, is_pkg in pkgutil.walk_packages(path=path,
prefix=prefix):
if name.startswith('stix2.v2') and is_pkg:
mod = importlib.import_module(name, top_level_module)
mod = importlib.import_module(name, str(top_level_module.__name__))
STIX2_OBJ_MAPS[name.split('.')[-1]] = mod.OBJ_MAP