Skip to content

Commit 7c8415f

Browse files
authored
Update __init__.py (#451)
Fix #424
1 parent 607f926 commit 7c8415f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bindings/Sofa/package/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def import_sofa_python_scene(path_to_scene : str):
391391
sys.modules["module.name"] = module_name
392392
spec_from_location.loader.exec_module(module_name)
393393

394-
if not hasattr(foo, "createScene"):
394+
if not hasattr(module_name, "createScene"):
395395
raise Exception("Unable to find 'createScene' in module "+path_to_scene)
396396

397397
return foo

0 commit comments

Comments
 (0)