diff --git a/doc/changelog.d/487.documentation.md b/doc/changelog.d/487.documentation.md new file mode 100644 index 000000000..02a10771f --- /dev/null +++ b/doc/changelog.d/487.documentation.md @@ -0,0 +1 @@ +fix: changed Launcher.launch_sherlock() to properly append sherlock_command_args \ No newline at end of file diff --git a/src/ansys/sherlock/core/launcher.py b/src/ansys/sherlock/core/launcher.py index b8cde32eb..acc2a20a1 100644 --- a/src/ansys/sherlock/core/launcher.py +++ b/src/ansys/sherlock/core/launcher.py @@ -82,7 +82,7 @@ def launch_sherlock( try: _is_port_available(host, port) except Exception as e: - print(str(e)) + LOG.error(str(e)) raise e _server_version = None @@ -95,8 +95,8 @@ def launch_sherlock( args.append("-singleProject") args.append(single_project_path) if sherlock_command_args != "": - args.append(f"{shlex.split(sherlock_command_args)}") - print(args) + args.extend(shlex.split(sherlock_command_args)) + LOG.info(f"Command arguments: {args}") subprocess.Popen(args) sherlock = connect_grpc_channel(port, _server_version)