From e4e7fa83d0984146eeccd6c75d2cf33bbb1fde46 Mon Sep 17 00:00:00 2001 From: ojkoenig Date: Mon, 15 Aug 2022 14:35:34 +0200 Subject: [PATCH] Minor update for exec scripts --- examples/exec_scripts/exec_mapdl.py | 2 +- examples/exec_scripts/exec_python.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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