def disable(mod_name):
"""
disable mod
"""
if mod_name not in system_mod and "rqalpha_mod_" in mod_name:
mod_name = mod_name.replace("rqalpha_mod_", "")
config_path = get_default_config_path()
config = load_config(config_path, loader=yaml.RoundTripLoader)
try:
config['mod'][mod_name]['enabled'] = False
dump_config(config_path, config)
except Exception as e:
pass
评论列表
文章目录