コード例 #1
0
ファイル: test_common_common.py プロジェクト: megies/morituri
    def testRelativeOutputDirectory(self):
        directory = '.Placebo - Black Market Music (2000)'
        cue = './' + directory + '/Placebo - Black Market Music (2000)'
        track = './' + directory + '/01. Placebo - Taste in Men.flac'

        self.assertEquals(common.getRelativePath(track, cue),
            '01. Placebo - Taste in Men.flac')
コード例 #2
0
    def testRelativeOutputDirectory(self):
        directory = '.Placebo - Black Market Music (2000)'
        cue = './' + directory + '/Placebo - Black Market Music (2000)'
        track = './' + directory + '/01. Placebo - Taste in Men.flac'

        self.assertEquals(common.getRelativePath(track, cue),
            '01. Placebo - Taste in Men.flac')
コード例 #3
0
ファイル: table.py プロジェクト: chadberg/whipper
 def writeFile(path):
     targetPath = common.getRelativePath(path, cuePath)
     line = 'FILE "%s" WAVE' % targetPath
     lines.append(line)
     self.debug('writeFile: %r' % line)
コード例 #4
0
 def writeFile(handle, path, length):
     targetPath = common.getRelativePath(path, m3uPath)
     u = u'#EXTINF:%d,%s\n' % (length, targetPath)
     handle.write(u.encode('utf-8'))
     u = '%s\n' % targetPath
     handle.write(u.encode('utf-8'))
コード例 #5
0
 def writeFile(handle, path, length):
     targetPath = common.getRelativePath(path, m3uPath)
     u = u'#EXTINF:%d,%s\n' % (length, targetPath)
     handle.write(u.encode('utf-8'))
     u = '%s\n' % targetPath
     handle.write(u.encode('utf-8'))
コード例 #6
0
ファイル: table.py プロジェクト: BrainwashtheMasses/whipper
 def writeFile(path):
     targetPath = common.getRelativePath(path, cuePath)
     line = 'FILE "%s" WAVE' % targetPath
     lines.append(line)
     self.debug('writeFile: %r' % line)
コード例 #7
0
ファイル: table.py プロジェクト: dioltas/morituri
 def writeFile(path):
     targetPath = common.getRelativePath(path, cuePath)
     lines.append('FILE "%s" WAVE' % targetPath)
コード例 #8
0
ファイル: table.py プロジェクト: megies/morituri
 def writeFile(path):
     targetPath = common.getRelativePath(path, cuePath)
     lines.append('FILE "%s" WAVE' % targetPath)