schrodinger.utils.sysinfo module¶
Gather information about current system.
- schrodinger.utils.sysinfo.PYTHON_EXE = '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.