hpcflow.sdk.submission.shells.os_version.get_OS_info_POSIX#

hpcflow.sdk.submission.shells.os_version.get_OS_info_POSIX(WSL_executable=None, use_py=True, linux_release_file=None)#

Get operating system version info: POSIX version.

Parameters:
  • WSL_executable (List[str] | None) – Executable to run subprocess calls via WSL on Windows.

  • use_py (bool | None) – If True, use the platform.uname() Python function to get the OS information. Otherwise use subprocess to call uname. We set this to False when getting OS info in WSL on Windows, since we need to call the WSL executable.

  • linux_release_file (str | None) – If on Linux, record the name and version fields from this file.

Return type:

Dict