diff --git a/examples/exec_scripts/exec_mapdl.py b/examples/exec_scripts/exec_mapdl.py index c19f49b6c..a4ce048c5 100644 --- a/examples/exec_scripts/exec_mapdl.py +++ b/examples/exec_scripts/exec_mapdl.py @@ -29,7 +29,7 @@ def execute(self): # Identify application app_name = "ANSYS Mechanical APDL" - app = next((a for a in self.context.applications if a["name"] == app_name), None) + app = next((a for a in self.context.software if a["name"] == app_name), None) assert app, f"Cannot find app {app_name}" # Add " around exe if needed for Windows diff --git a/examples/exec_scripts/exec_python.py b/examples/exec_scripts/exec_python.py index 99125660f..93afcc7bd 100644 --- a/examples/exec_scripts/exec_python.py +++ b/examples/exec_scripts/exec_python.py @@ -28,7 +28,7 @@ def execute(self): # Identify application app_name = "Python" - app = next((a for a in self.context.applications if a["name"] == app_name), None) + app = next((a for a in self.context.software if a["name"] == app_name), None) assert app, f"Cannot find app {app_name}" # Add " around exe if needed for Windows