Skip to content

Commit

Permalink
refactor: gRPC FTS refactoring 8
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar committed Apr 29, 2024
1 parent b8fe46f commit 0cb23d1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/ansys/fluent/core/launcher/fluent_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
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 @@ -281,7 +280,7 @@ def configure_container_dict(
fd, sifile = tempfile.mkstemp(
suffix=".txt",
prefix="serverinfo-",
dir=host_mount_path if host_mount_path else pyfluent.EXAMPLES_PATH,
dir=host_mount_path if host_mount_path else "/home",
)
os.close(fd)
container_server_info_file = (
Expand Down Expand Up @@ -315,10 +314,10 @@ 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"

host_server_info_file = (
(Path(host_mount_path) / container_server_info_file.name)
if host_mount_path
else (Path(pyfluent.EXAMPLES_PATH) / container_server_info_file.name)
Path(server_info_file_path) / container_server_info_file.name
)

return (
Expand Down

0 comments on commit 0cb23d1

Please sign in to comment.