* 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> 2009-05-03 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/task.py: * morituri/common/task.py:

View File

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