Debugger.py 文件源码

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

项目:spartacus 作者: CommunicationsSecurityEstablishment 项目源码 文件源码
def validatePaths(argsWithPaths):
    """
    This function will simply validate that the input path exists and that the output path
    is free for the system to use
    :param argsWithPaths: An input parsed object as provided by argparse.parse_args()
    :return: This does not return. Simply raises ValueError in cases where paths are not valid.
    """
    gotSymbols = False
    if not os.path.exists(argsWithPaths.input):
        raise ValueError("ERROR: file {} does not exists.".format(argsWithPaths.input,))
    else:
        if os.path.exists(argsWithPaths.input.split(".")[0] + ".sym"):
            gotSymbols = True

    return gotSymbols
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号