schrodinger.application.licensing.licserver.quick_slm_setup module

exception schrodinger.application.licensing.licserver.quick_slm_setup.InstanceAlreadyRunningError

Bases: Exception

Exception raised when an instance of the Schrodinger License Manager (SLM) is already running on the system.

schrodinger.application.licensing.licserver.quick_slm_setup.raise_if_process_running(process_name: str)

Checks if any process with the given name is currently running on the system. If a matching process is found, it raises a InstanceAlreadyRunningError. This function is invoked by the caller with elevated privileges to access running instances of all users.

Parameters:

process_name – The name of the process to check for. It is case-insensitive.

Raises:

InstanceAlreadyRunningError – If a process with the given name is found running.

schrodinger.application.licensing.licserver.quick_slm_setup.get_lictool_from_slm_installation(install_path: str) str

Returns the path to the ‘lictool’ executable in the Schrodinger License Manager (SLM) installation.

Parameters:

install_path – The path where the SLM is installed.

schrodinger.application.licensing.licserver.quick_slm_setup.get_licserverd_from_slm_installation(install_path: str) str

Returns the path to the ‘licserverd’ executable in the Schrodinger License Manager (SLM) installation.

Parameters:

install_path – The path where the SLM is installed.