Merge branch 'develop' into hyperopt-adaptive-roi-space

This commit is contained in:
hroff-1902
2019-08-20 23:00:23 +03:00
committed by GitHub
55 changed files with 1583 additions and 813 deletions

View File

@@ -29,7 +29,8 @@ class IResolver(object):
"""
# Generate spec based on absolute path
spec = importlib.util.spec_from_file_location('unknown', str(module_path))
# Pass object_name as first argument to have logging print a reasonable name.
spec = importlib.util.spec_from_file_location(object_name, str(module_path))
module = importlib.util.module_from_spec(spec)
try:
spec.loader.exec_module(module) # type: ignore # importlib does not use typehints