From 4eb515c958f63a633d33e3a28fcea43eb0b549c3 Mon Sep 17 00:00:00 2001 From: Harshal Pohekar <106588300+hpohekar@users.noreply.github.com> Date: Fri, 19 Apr 2024 11:02:25 +0530 Subject: [PATCH] fix: file transfer refactor (#2705) * fix: file transfer refactor * merge fix * merge fix 1 --- src/ansys/fluent/core/utils/file_transfer_service.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ansys/fluent/core/utils/file_transfer_service.py b/src/ansys/fluent/core/utils/file_transfer_service.py index 30b7d056ee0..ed76b493db3 100644 --- a/src/ansys/fluent/core/utils/file_transfer_service.py +++ b/src/ansys/fluent/core/utils/file_transfer_service.py @@ -10,7 +10,6 @@ from alive_progress import alive_bar import ansys.fluent.core as pyfluent -from ansys.fluent.core.launcher.process_launch_string import get_fluent_exe_path import ansys.platform.instancemanagement as pypim import ansys.tools.filetransfer as ft @@ -51,11 +50,7 @@ def __init__(self, server_cwd: Optional[str] = None): """ self.pyfluent_cwd = pathlib.Path(str(os.getcwd())) self.fluent_cwd = ( - pathlib.Path(str(server_cwd)) - if server_cwd - else ( - pathlib.Path(str(get_fluent_exe_path()).split("fluent")[0]) / "fluent" - ) + pathlib.Path(str(server_cwd)) if server_cwd else self.pyfluent_cwd ) def file_exists_on_remote(self, file_name: str) -> bool: