Skip to content

Commit c251835

Browse files
fix: changed Launcher.launch_sherlock() to properly append sherlock_command_args (#487)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent ef7cfbe commit c251835

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: changed Launcher.launch_sherlock() to properly append sherlock_command_args

src/ansys/sherlock/core/launcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def launch_sherlock(
8282
try:
8383
_is_port_available(host, port)
8484
except Exception as e:
85-
print(str(e))
85+
LOG.error(str(e))
8686
raise e
8787

8888
_server_version = None
@@ -95,8 +95,8 @@ def launch_sherlock(
9595
args.append("-singleProject")
9696
args.append(single_project_path)
9797
if sherlock_command_args != "":
98-
args.append(f"{shlex.split(sherlock_command_args)}")
99-
print(args)
98+
args.extend(shlex.split(sherlock_command_args))
99+
LOG.info(f"Command arguments: {args}")
100100
subprocess.Popen(args)
101101

102102
sherlock = connect_grpc_channel(port, _server_version)

0 commit comments

Comments
 (0)