Skip to content

Commit

Permalink
Merge branch 'main' into fix/delete_remote_fts_on_fluent_exit
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar authored Apr 19, 2024
2 parents 6f6a801 + 4eb515c commit f7c7286
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/ansys/fluent/core/utils/file_transfer_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,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
import docker
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f7c7286

Please sign in to comment.