* Martin Michlmayr <[EMAIL PROTECTED]> [2005-11-12 12:20]:
> Arne, please apply.
OK, that patch was slightly wrong. We cannot just use jack.toc
instead of the passed toc file since it won't contain a reference to
the image toc file. Instead we have to use the absolute path so it
can find the file:
diff -urN jack-3.1.1~/jack_functions.py jack-3.1.1/jack_functions.py
--- jack-3.1.1~/jack_functions.py 2005-11-12 12:16:08.000000000 +0000
+++ jack-3.1.1/jack_functions.py 2005-11-12 12:16:20.000000000 +0000
@@ -236,7 +236,12 @@
"returns TOC object, needs name of toc-file to read"
toc = jack_TOC.TOC()
- f = open(tocfile, "r")
+ if not os.path.exists(tocfile):
+ error("Can't open TOC file '%s': file does not exist." %
os.path.abspath(tocfile))
+ try:
+ f = open(tocfile, "r")
+ except (IOError, OSError), e:
+ error("Can't open TOC file '%s': %s" % (os.path.abspath(tocfile), e))
tocpath, tocfiledummy = os.path.split(tocfile)
diff -urN jack-3.1.1~/jack_prepare.py jack-3.1.1/jack_prepare.py
--- jack-3.1.1~/jack_prepare.py 2005-11-12 12:16:08.000000000 +0000
+++ jack-3.1.1/jack_prepare.py 2005-11-12 16:48:29.000000000 +0000
@@ -58,6 +58,8 @@
jack_ripstuff.all_tracks = []
else:
if cf['_image_toc_file']:
+ # put the absolute path in the variable since we'll change
cwd soon
+ cf['_image_toc_file'] =
os.path.abspath(cf['_image_toc_file'])
jack_ripstuff.all_tracks, dummy, dummy =
jack_functions.cdrdao_gettoc(cf['_image_toc_file'])
else:
jack_ripstuff.all_tracks =
jack_functions.gettoc(cf['_toc_prog'])
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]