(self)
return f_path
Get the portion of a pathname that exists
Get the portion of a pathname that exists
Get the portion of a pathname that exists
def getvalid_path(self):
        """Get the portion of a pathname that exists"""
        f_path = self.filename
        while f_path:
            if os.path.exists(f_path):
                return f_path
            (f_path, dummy) = os.path.split(f_path)
        return f_path
def getvalid_path ( self ) : f_path = self . filename while f_path : if os . path . exists ( f_path ) : return f_path ( f_path , dummy ) = os . path . split ( f_path ) return f_path