Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions src/ansys/fluent/core/launcher/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,15 +672,17 @@ def launch_fluent(
if meshing_mode:
args.append(" -meshing")

save_path = pyfluent.EXAMPLES_PATH
# Check if save path exists
if not os.path.exists(save_path):
os.makedirs(save_path)

# Assumes the container OS will be able to create the
# EXAMPLES_PATH of host OS. With the Fluent docker
# container, the following currently works only in linux.
port, password = start_fluent_container(save_path, save_path, args)
host_mount_path = pyfluent.EXAMPLES_PATH
if not os.path.exists(host_mount_path):
os.makedirs(host_mount_path)

container_mount_path = os.getenv(
"PYFLUENT_CONTAINER_MOUNT_PATH", host_mount_path
)

port, password = start_fluent_container(
host_mount_path, container_mount_path, args
)
return new_session(
fluent_connection=FluentConnection(
start_timeout=start_timeout,
Expand Down