Skip to content

Commit

Permalink
update exception
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinknair committed Apr 16, 2024
1 parent 2d5d64d commit 0c40d8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ansys/mechanical/core/embedding/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 0c40d8a

Please sign in to comment.