We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 607f926 commit 7c8415fCopy full SHA for 7c8415f
1 file changed
bindings/Sofa/package/__init__.py
@@ -391,7 +391,7 @@ def import_sofa_python_scene(path_to_scene : str):
391
sys.modules["module.name"] = module_name
392
spec_from_location.loader.exec_module(module_name)
393
394
- if not hasattr(foo, "createScene"):
+ if not hasattr(module_name, "createScene"):
395
raise Exception("Unable to find 'createScene' in module "+path_to_scene)
396
397
return foo
0 commit comments