schrodinger.utils.sysinfo module¶
Gather information about current system.
- schrodinger.utils.sysinfo.PYTHON_EXE = '/scr/buildbot/savedbuilds/2024-1/NB/build-133/internal/bin/python3'¶
Versioned Python executable to use in calls to Python. Useful when running a Python command (python3 -c “”). Prefer $SCHRODINGER/run <scriptname.py>
- schrodinger.utils.sysinfo.catch_subprocess_errors(f)¶
Catches non-zero return code for any operations that might fail. Use this to return UNKNOWN for any values we can’t query.
- schrodinger.utils.sysinfo.get_glibc_version()¶
Return string of glibc version.
- schrodinger.utils.sysinfo.get_kernel_version()¶
Return string of Linux kernel version.
- schrodinger.utils.sysinfo.get_cpu()¶
Return a descriptive string of CPU type.
- schrodinger.utils.sysinfo.query_registry(key, value)¶
- schrodinger.utils.sysinfo.get_osname()¶
Return descriptive name of OS for reporting.
- schrodinger.utils.sysinfo.get_hostid()¶
- schrodinger.utils.sysinfo.get_hostname()¶
Return the FLEXlm hostname.
- schrodinger.utils.sysinfo.get_uname()¶
- schrodinger.utils.sysinfo.is_display_present()¶
Returns TRUE if user can access display.
- schrodinger.utils.sysinfo.disable_core()¶
Disable coredump generation for unix platforms.
- schrodinger.utils.sysinfo.check_cpu_features()¶
Returns True as long as none of the required CPU features is detected as missing. If some feature is not supported by the CPU, prints a message and returns False.