mache.spack.config_to_shell_script

mache.spack.config_to_shell_script(config, shell_type)[source]

Convert the machine configuration to a shell script.

Parameters:
  • config (etree.Element) – The XML element of the machine configuration.

  • shell_type (str) – The type of shell script to generate (‘sh’ or ‘csh’).

Returns:

str – The shell script as a string.