Skip to content

Commit

Permalink
refactor: gRPC FTS refactoring 9
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar committed Apr 29, 2024
1 parent 0cb23d1 commit d0e7b16
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ansys/fluent/core/launcher/fluent_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import tempfile
from typing import List, Optional, Union

import ansys.fluent.core as pyfluent
from ansys.fluent.core._version import fluent_release_version
from ansys.fluent.core.session import _parse_server_info_file
from ansys.fluent.core.utils.execution import timeout_loop
Expand Down Expand Up @@ -280,7 +281,7 @@ def configure_container_dict(
fd, sifile = tempfile.mkstemp(
suffix=".txt",
prefix="serverinfo-",
dir=host_mount_path if host_mount_path else "/home",
dir=host_mount_path if host_mount_path else pyfluent.USER_DATA_PATH,
)
os.close(fd)
container_server_info_file = (
Expand Down Expand Up @@ -314,7 +315,9 @@ def configure_container_dict(
if k not in container_dict:
container_dict[k] = v

server_info_file_path = Path(host_mount_path) if host_mount_path else "/home"
server_info_file_path = (
Path(host_mount_path) if host_mount_path else pyfluent.USER_DATA_PATH
)

host_server_info_file = (
Path(server_info_file_path) / container_server_info_file.name
Expand Down

0 comments on commit d0e7b16

Please sign in to comment.