Source code for rsrtx.Implementations.Executable

from ..Internal.Core import Core
from ..Internal.CommandsGroup import CommandsGroup
from ..Internal import Conversions
from ..Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ExecutableCls:
	"""
	| Commands in total: 3
	| Subgroups: 0
	| Direct child commands: 3
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("executable", core, parent)

[docs] def get_name(self) -> str: """ ``EXECutable:NAME`` \n Snippet: ``value: str = driver.executable.get_name()`` \n Sets the path to the application executable. :return: application_path: String parameter containing path, filename, and file extension """ response = self._core.io.query_str_with_opc('EXECutable:NAME?') return trim_str_response(response)
[docs] def set_name(self, application_path: str) -> None: """ ``EXECutable:NAME`` \n Snippet: ``driver.executable.set_name(application_path = 'abc')`` \n Sets the path to the application executable. :param application_path: String parameter containing path, filename, and file extension """ param = Conversions.value_to_quoted_str(application_path) self._core.io.write_with_opc(f'EXECutable:NAME {param}')
[docs] def get_parameter(self) -> str: """ ``EXECutable:PARameter`` \n Snippet: ``value: str = driver.executable.get_parameter()`` \n Sets optional parameters for the external executable. """ response = self._core.io.query_str_with_opc('EXECutable:PARameter?') return trim_str_response(response)
[docs] def set_parameter(self, application_parameters: str) -> None: """ ``EXECutable:PARameter`` \n Snippet: ``driver.executable.set_parameter(application_parameters = 'abc')`` \n Sets optional parameters for the external executable. :param application_parameters: String parameter """ param = Conversions.value_to_quoted_str(application_parameters) self._core.io.write_with_opc(f'EXECutable:PARameter {param}')
[docs] def get_wdirectory(self) -> str: """ ``EXECutable:WDIRectory`` \n Snippet: ``value: str = driver.executable.get_wdirectory()`` \n Sets the working directory for the executable. :return: work_directory: String parameter """ response = self._core.io.query_str_with_opc('EXECutable:WDIRectory?') return trim_str_response(response)
[docs] def set_wdirectory(self, work_directory: str) -> None: """ ``EXECutable:WDIRectory`` \n Snippet: ``driver.executable.set_wdirectory(work_directory = 'abc')`` \n Sets the working directory for the executable. :param work_directory: String parameter """ param = Conversions.value_to_quoted_str(work_directory) self._core.io.write_with_opc(f'EXECutable:WDIRectory {param}')