예제 #1
0
    def testRealWithBackslash(self):
        fd, path = tempfile.mkstemp(suffix=u'back\\slash.flac')
        refPath = os.path.join(os.path.dirname(path), 'fake.cue')

        self.assertEqual(common.getRealPath(refPath, path), path)

        # same path, but with wav extension, will point to flac file
        wavPath = path[:-4] + 'wav'
        self.assertEqual(common.getRealPath(refPath, wavPath), path)

        os.close(fd)
        os.unlink(path)
예제 #2
0
    def testRealWithBackslash(self):
        fd, path = tempfile.mkstemp(suffix=u'back\\slash.flac')
        refPath = os.path.join(os.path.dirname(path), 'fake.cue')

        self.assertEquals(common.getRealPath(refPath, path), path)

        # same path, but with wav extension, will point to flac file
        wavPath = path[:-4] + 'wav'
        self.assertEquals(common.getRealPath(refPath, wavPath), path)

        os.close(fd)
        os.unlink(path)
예제 #3
0
파일: toc.py 프로젝트: tlc/whipper
    def getRealPath(self, path):
        """
        Translate the .toc's FILE to an existing path.

        @type  path: unicode
        """
        return common.getRealPath(self._path, path)
예제 #4
0
파일: cue.py 프로젝트: tobbez/whipper
    def getRealPath(self, path):
        """
        Translate the .cue's FILE to an existing path.

        @type  path: unicode
        """
        return common.getRealPath(self._path, path)
예제 #5
0
파일: toc.py 프로젝트: Lapin0t/whipper
    def getRealPath(self, path):
        """Translate the .toc's FILE to an existing path.

        :param path:
        :type path: unicode
        """
        return common.getRealPath(self._path, path)
예제 #6
0
파일: cue.py 프로젝트: vsq/whipper_freedb
    def getRealPath(self, path):
        """Translate the .cue's FILE to an existing path.

        :param path:
        :type path: unicode
        """
        return common.getRealPath(self._path, path)
예제 #7
0
    def getRealPath(self, path):
        """
        Translate the .cue's FILE to an existing path.

        :type  path: str
        """
        return common.getRealPath(self._path, path)
예제 #8
0
    def getRealPath(self, path):
        """
        Translate the .toc's FILE to an existing path.

        :param path: path to track
        :type path: str
        """
        return common.getRealPath(self._path, path)