schrodinger.utils.sysinfo module

Gather information about current system.

schrodinger.utils.sysinfo.PYTHON_EXE = '/scr/buildbot/savedbuilds/2024-4/NB/build-117/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.is_display_using_xvfb()

Tell if the X11 DISPLAY is defined by Xvfb. If not, it means this is a real display. It returns False if there is no DISPLAY.

schrodinger.utils.sysinfo.is_real_display()

True if the display is present on Windows and mac, and is not from Xvfb on Linux. This is required by some graphics tests.

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.