Skip to content

Commit 7d758a3

Browse files
authored
Merge pull request #3 from ansys-internal/feat/name_variable
Follow pythonic naming convention for variables.
2 parents a76e289 + cb72dfd commit 7d758a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ansys/workbench/core/launch_workbench.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ def _launch_server(self):
4949
logging.warning("ANSYS installation not found. Assume the default location: " + install_path)
5050
else:
5151
logging.info("ANSYS installation found at: " + install_path)
52-
exePath = os.path.join(install_path, "Framework", "bin", "Win64", "RunWB2.exe")
52+
executable = os.path.join(install_path, "Framework", "bin", "Win64", "RunWB2.exe")
5353
prefix = uuid.uuid4().hex
5454
workdir_arg = ''
5555
if self._server_workdir is not None:
5656
workdir_arg = ",WorkingDirectory=\'" + self._server_workdir + "\'"
57-
cmdLine = exePath + " -I -E \"StartServer(EnvironmentPrefix=\'" + prefix + "\'" + workdir_arg + ")\""
57+
command = executable + " -I -E \"StartServer(EnvironmentPrefix=\'" + prefix + "\'" + workdir_arg + ")\""
5858

5959
process_startup_info = self._wmi_connection.Win32_ProcessStartup.new(ShowWindow=1)
6060
process_id, result = self._wmi_connection.Win32_Process.Create(
61-
CommandLine = cmdLine,
61+
CommandLine = command,
6262
ProcessStartupInformation = process_startup_info)
6363

6464
if result == 0:
65-
logging.info("Workbench launched on the host with process id " + str(process_id))
65+
logging.info("Workbench launched on the host with process id: " + str(process_id))
6666
self._process_id = process_id
6767
else:
6868
logging.error("Workbench failed to launch on the host")

0 commit comments

Comments
 (0)