source/riffle/browser.py
def _segmentPath(self, path):
        '''Return list of valid *path* segments.'''
        parts = []
        model = self._filesystemWidget.model()

        # Separate root path from remainder.
        remainder = path

        while True:
            if remainder == model.root.path:
                break

            if remainder:
                parts.append(remainder)

            head, tail = os.path.split(remainder)
            if head == remainder:
                break

            remainder = head

        parts.append(model.root.path)
        return parts
def _segmentPath(self, path):
        '''Return list of valid *path* segments.'''
        parts = []
        model = self._filesystemWidget.model()

        # Separate root path from remainder.
        remainder = path

        while True:
            if remainder == model.root.path:
                break

            if remainder:
                parts.append(remainder)

            head, tail = os.path.split(remainder)
            if head == remainder:
                break

            remainder = head

        parts.append(model.root.path)
        return parts
def _segmentPath ( self , path ) : parts = [ ] model = self . _filesystemWidget . model ( ) # Separate root path from remainder. remainder = path while True : if remainder == model . root . path : break if remainder : parts . append ( remainder ) head , tail = os . path . split ( remainder ) if head == remainder : break remainder = head parts . append ( model . root . path ) return parts
Return list of valid *path* segments.
Return list of valid * path * segments .