* examples/readtrack.py:

Allow specifying the track to save.
This commit is contained in:
Thomas Vander Stichele
2009-05-03 19:16:05 +00:00
parent 836a3beea1
commit 66033faac7
2 changed files with 14 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2009-05-03 Thomas Vander Stichele <thomas at apestaart dot org>
* examples/readtrack.py:
Allow specifying the track to save.
2009-05-03 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/task.py:

View File

@@ -3,6 +3,7 @@
import re
import os
import sys
import stat
import subprocess
import tempfile
@@ -16,11 +17,17 @@ gobject.threads_init()
def main():
log.init()
runner = task.SyncRunner()
checksums = []
fd, path = tempfile.mkstemp(suffix='.morituri')
os.close(fd)
if len(sys.argv) > 1:
path = sys.argv[1]
else:
fd, path = tempfile.mkstemp(suffix='.morituri.wav')
os.close(fd)
print 'storing track to %s' % path
fakeTable = table.Table([
table.Track( 1, 0, 15536),