def _expander(namepath):
    """ expand ./ ~ and ../ designators in location names """
    if "~" in namepath:
        namepath = os.path.expanduser(namepath)
    else:
        namepath = os.path.abspath(namepath)
    return namepath
def _expander(namepath):
    
    if "~" in namepath:
        namepath = os.path.expanduser(namepath)
    else:
        namepath = os.path.abspath(namepath)
    return namepath
def _expander ( namepath ) : if "~" in namepath : namepath = os . path . expanduser ( namepath ) else : namepath = os . path . abspath ( namepath ) return namepath
expand ./ ~ and ../ designators in location names
expand . / ~ and .. / designators in location names