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)[source]

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()[source]

Return string of glibc version.

schrodinger.utils.sysinfo.get_kernel_version()[source]

Return string of Linux kernel verison.

schrodinger.utils.sysinfo.get_cpu()[source]

Return a descriptive string of CPU type.

schrodinger.utils.sysinfo.query_registry(key, value)[source]
schrodinger.utils.sysinfo.get_osname()[source]

Return descriptive name of OS for reporting.

schrodinger.utils.sysinfo.get_hostid()[source]
schrodinger.utils.sysinfo.get_hostname()[source]

Return the FLEXlm hostname.

schrodinger.utils.sysinfo.get_uname()[source]