Skip to content

Commit

Permalink
Add GRPC port (#3798)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys authored Oct 25, 2023
1 parent 96f58b3 commit 8af5e38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pyaedt/misc/Run_PyAEDT_Script.py_build
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def main():
check_file(python_exe)
check_file(pyaedt_script)
os.environ["PYAEDT_SCRIPT_PROCESS_ID"] = str(oDesktop.GetProcessID())
os.environ["PYAEDT_SCRIPT_VERSION"] = str(oDesktop.GetVersion()[:6])
version = str(oDesktop.GetVersion()[:6])
os.environ["PYAEDT_SCRIPT_VERSION"] = version
if version > "2022.2":
os.environ["PYAEDT_SCRIPT_PORT"] = str(oDesktop.GetGrpcServerPort())
if is_linux:
edt_root = os.path.normpath(oDesktop.GetExeDir())
os.environ["ANSYSEM_ROOT{}".format(version)] = edt_root
Expand Down
5 changes: 4 additions & 1 deletion pyaedt/misc/Run_PyAEDT_Toolkit_Script.py_build
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ def main():
check_file(python_exe)
check_file(pyaedt_script)
os.environ["PYAEDT_SCRIPT_PROCESS_ID"] = str(oDesktop.GetProcessID())
os.environ["PYAEDT_SCRIPT_VERSION"] = str(oDesktop.GetVersion()[:6])
version = str(oDesktop.GetVersion()[:6])
os.environ["PYAEDT_SCRIPT_VERSION"] = version
if version > "2022.2":
os.environ["PYAEDT_SCRIPT_PORT"] = str(oDesktop.GetGrpcServerPort())
if is_linux:
edt_root = os.path.normpath(oDesktop.GetExeDir())
os.environ["ANSYSEM_ROOT{}".format(version)] = edt_root
Expand Down

0 comments on commit 8af5e38

Please sign in to comment.