__main__.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:rqalpha 作者: ricequant 项目源码 文件源码
def generate_config(directory):
    """
    Generate default config file
    """
    default_config = os.path.join(os.path.dirname(os.path.realpath(__file__)), "config.yml")
    target_config_path = os.path.abspath(os.path.join(directory, 'config.yml'))
    shutil.copy(default_config, target_config_path)
    six.print_("Config file has been generated in", target_config_path)


# For Mod Cli
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号