osal.py 文件源码

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

项目:device-cloud-python 作者: Wind-River 项目源码 文件源码
def execl(*args):
    """
    Replaces the current process with a new instance of the specified
    executable. This function will only return if there is an issue starting the
    new instance, in which case it will return false. Otherwise, it will not
    return.
    """
    retval = EXECUTION_FAILURE

    if POSIX:
        os.execvp(args[0], args)
    elif WIN32:
        os.execvp(sys.executable, args)
    else:
        retval = NOT_SUPPORTED

    return retval
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号