def NewPathCheck(path):
 PathCheck(os.path.dirname(path))
 return os.path.abspath(path)

def NewPathCheck ( path ) : PathCheck ( os . path . dirname ( path ) ) return os . path . abspath ( path )
verify that a string is a valid path to a directory .