def src_fn(parms, srcfile):
    if srcfile:
        if ('.' not in os.path.basename(srcfile)):
            srcfile += '.cpp'
    else:
        srcfile = cli_cpp(parms)
    return srcfile
def src_fn(parms, srcfile):
    if srcfile:
        if ('.' not in os.path.basename(srcfile)):
            srcfile += '.cpp'
    else:
        srcfile = cli_cpp(parms)
    return srcfile