main.py 文件源码

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

项目:py-linux-traffic-control 作者: yassen-itlabs 项目源码 文件源码
def pyltc_entry_point(argv=None, target_factory=None):
    """
    Calls the parseargs stuff to make sure all common arguments
    are handled properly, then executes the default plugin entry point.

    :param argv: list - the command line arguments as provided by `sys.argv[1:]`
    :return: None
    """
    TrafficControl.init()
    try:
        simnet.plugin_main(argv, target_factory)
    except ParserError as err:
        print("ltc.py: error:", err, file=sys.stderr)
        return 2
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号