downloader.py 文件源码

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

项目:aws-vapor 作者: ohtomi 项目源码 文件源码
def take_action(self, args):
        """Download a recipe from remote URL and save it to a local file under contrib directory.

        Args:
            args (:obj:`dict`): Parsed command line arguments.
                "url" is an URL where a recipe will be downloaded from.
        """
        file_url = args.url
        filename = parse.urlsplit(file_url).path.split('/')[-1:][0]
        contrib = utils.get_property_from_config_file('defaults', 'contrib')
        self._download_recipe(file_url, filename, contrib)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号