74 |
front = r.findall(fname) |
front = r.findall(fname) |
75 |
front = front[0] |
front = front[0] |
76 |
# make the conversion string to pass to 'convert' |
# make the conversion string to pass to 'convert' |
77 |
convString = "convert %s%s %spnm" % (front, format, front) |
convString = "convert %s/%s%s %s/%spnm" % \ |
78 |
|
(dirname, front, format, dirname, front) |
79 |
retVal = os.system(convString) |
retVal = os.system(convString) |
80 |
if retVal != 0: |
if retVal != 0: |
81 |
raise SystemError, "Conversion of %s%s failed" % (front, format) |
raise SystemError, "Conversion of %s%s failed" % (front, format) |