return False
else:
if (output not in source_configuration) or (source_configuration[output] != target_configuration[output]):
return False
for output in source_configuration.keys():
if "off" in source_configuration[output].options:
return False
else:
if (output not in source_configuration) or (source_configuration[output] != target_configuration[output]):
return False
for output in source_configuration.keys():
if "off" in source_configuration[output].options:
def read_config(options, directory):
"""Parse a configuration config.ini from directory and merge it into
the options dictionary"""
def read_config(options, directory):
"""Parse a configuration config.ini from directory and merge it into
the options dictionary"""
exec_scripts(profile_folder, "postsave", {
"CURRENT_PROFILE": options["--save"],
"PROFILE_FOLDER": profile_folder,
exec_scripts(profile_folder, "postsave", {
"CURRENT_PROFILE": options["--save"],
"PROFILE_FOLDER": profile_folder,
})
except Exception as e:
raise AutorandrException("Failed to save current configuration as profile '%s'" % (options["--save"],), e)
})
except Exception as e:
raise AutorandrException("Failed to save current configuration as profile '%s'" % (options["--save"],), e)
script_metadata = {
"CURRENT_PROFILE": load_profile,
"PROFILE_FOLDER": scripts_path,
script_metadata = {
"CURRENT_PROFILE": load_profile,
"PROFILE_FOLDER": scripts_path,