def check_path(path):
    result = False
    new_path = os.path.realpath(path)
    if os.path.isfile(new_path):
        path = new_path
        result = True
    else:
        result = False
    return result

###############################################################################
Create a button control capable of displaying a textual label and executing a command when selected by the user.
dataset/ETHPy150Open VisTrails/VisTrails/extensions/latex/includevistrail.py/check_path--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/core/windows.py/button