From fb34bc30b5b09ed4bc9ce61fb7b022a2db4b443d Mon Sep 17 00:00:00 2001 From: Camille <78221213+clatapie@users.noreply.github.com> Date: Fri, 2 Feb 2024 08:24:41 +0000 Subject: [PATCH] fix: launch_mapdl with specific ip value (#2725) * fix: launch_mapdl with specific ip value * Simplying --------- Co-authored-by: German --- src/ansys/mapdl/core/launcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ansys/mapdl/core/launcher.py b/src/ansys/mapdl/core/launcher.py index 0174203366..0d0dd38dda 100644 --- a/src/ansys/mapdl/core/launcher.py +++ b/src/ansys/mapdl/core/launcher.py @@ -1463,7 +1463,8 @@ def launch_mapdl( if ip is None: ip = os.environ.get("PYMAPDL_IP", None) - if not ip and ON_WSL: + if ip is None: + if ON_WSL: ip = _get_windows_host_ip() if ip: LOG.debug(