pyslk.resource_path_raw

pyslk.resource_path_raw#

pyslk.resource_path_raw(resource_id: str | int, return_type: int = 0) str | int | CompletedProcess#

Get path for a resource id

Parameters:
  • resource_id (str or int) – a resource_id

  • return_type (int) – select between 0 (== str output), 1 (== exit code), 2 (subprocess output)

Returns:

stdout of the slk call

Return type:

Union[str, int, subprocess.CompletedProcess]