Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Fix #424
  • Loading branch information
hugtalbot authored Sep 16, 2024
1 parent 607f926 commit 460fb05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/Sofa/package/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def import_sofa_python_scene(path_to_scene : str):
sys.modules["module.name"] = module_name
spec_from_location.loader.exec_module(module_name)

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

return foo
Expand Down

0 comments on commit 460fb05

Please sign in to comment.