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" )