schrodinger.utils.licutils module¶
Licence related helper functions.
-
schrodinger.utils.licutils.
fix_cmd
(cmd, logger=None)¶ This function prefix the command to map a temporary drive for the current working directory if the current directory is an UNC.
-
schrodinger.utils.licutils.
get_linked_path
(path)¶ Returns the absolute path for
path
. If it is a symlink, the absolute path to which the symlink points to will be returned. :type path: str :param path: The path
-
schrodinger.utils.licutils.
host_is_local
(hostname)¶ Determine whether the given hostname refers to the current host.
-
schrodinger.utils.licutils.
is_ipv4_addr
(addr)¶ Determine whether the given string is an IPv4 address.
-
schrodinger.utils.licutils.
license_is_dummy
(lic_file)¶ Determine whether the given license file contains any actual licenses, or not. Returns true if no license lines are found.
This function assumes that the specified file exists.
-
schrodinger.utils.licutils.
license_is_remote
(lic_file)¶ Determine whether the given “license file” is actually just the network address of a remote license server (<port>@<server-host>)
We don’t want to allow people to shut down a remote license server. If there is no “license file” or it cannot be opened, then the license must be remote.
-
schrodinger.utils.licutils.
license_list
(lic_search_path)¶ Split the given license search path up into individual items.
-
schrodinger.utils.licutils.
license_requires_server
(lic_file)¶ Determine whether the given license file requires a server or not.
-
schrodinger.utils.licutils.
same_host
(hostname1, hostname2)¶
-
schrodinger.utils.licutils.
shorthost
(hostname)¶