From 0c40d8a371d5c7a667cdfbe9a0bf6bebf28e9c9e Mon Sep 17 00:00:00 2001 From: dkunhamb Date: Tue, 16 Apr 2024 11:43:33 -0500 Subject: [PATCH] update exception --- src/ansys/mechanical/core/embedding/initializer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ansys/mechanical/core/embedding/initializer.py b/src/ansys/mechanical/core/embedding/initializer.py index 731cd138b..627dc5d61 100644 --- a/src/ansys/mechanical/core/embedding/initializer.py +++ b/src/ansys/mechanical/core/embedding/initializer.py @@ -112,8 +112,9 @@ def __check_for_mechanical_env(): """Embedding in linux platform must use mechanical-env.""" if platform.system() == "Linux" and os.environ.get("PYMECHANICAL_EMBEDDING") != "TRUE": raise Exception( - "Mechanical Embedding requires to use `mechanical-env` in Linux. " - "For instructions, please refer to: " + "On linux, embedding an instance of the Mechanical process using" + "the App class requires running python inside of a Mechanical environment." + "Use the mechanical-env script to do this. For more information, refer to:" "https://mechanical.docs.pyansys.com/version/stable/" "getting_started/running_mechanical.html#embed-a-mechanical-instance" )