Environment Tools¶
-
architect.envtools.
check_file_for_running_pyro
(csh_filename, ignore_host=None, ignore_port=None)¶ Read in a .csh environment file, and try to connect to the Pyro nameserver.
- If an name server specified in this file is running, return the nameserver.
- Otherwise return None.
- If ignore_host and ignore_port are specified, and the file matches the given
- connection information, return True and do not search for a nameserver.
-
architect.envtools.
communicate_env
(command, shell=None, starting_env=None)¶ Run command in a shell, return dict of env
Command will be run inside the shell using communicate.
-
architect.envtools.
get_current
(product, shell, flavor=None, eups_dir=None)¶ Get the current version of a product.
-
architect.envtools.
product_setup
(product, version=None, eups_dir=None, shell=None, setup_args=None, starting_env=None)¶ This does not yet contain error checking
-
architect.envtools.
get_setup_version
(product)¶ Return the currently set up version of the given product.