mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 15:18:51 -05:00
Support ancient python on XSF machines. Remove debugging comment.
This commit is contained in:
parent
9d8722a1aa
commit
9ac65af823
8
gen.py
8
gen.py
@ -74,10 +74,10 @@ def serializeInlineImage(output_dir, no, attrValue):
|
||||
plaindata = base64.b64decode(data)
|
||||
|
||||
# Do something smart with mime_type
|
||||
if mime_type in ('image/png'):
|
||||
if mime_type in ('image/png', 'image/jpeg'):
|
||||
file_ext = mime_type.split('/')[1]
|
||||
with open(output_dir + '/' + 'inlineimage-' + str(no) + '.' + file_ext, 'wb') as f:
|
||||
f.write(plaindata)
|
||||
f = open(output_dir + '/' + 'inlineimage-' + str(no) + '.' + file_ext, 'wb')
|
||||
f.write(plaindata)
|
||||
|
||||
def serializeXEPInlineImages(output_dir, filename):
|
||||
dom = parse(filename)
|
||||
@ -418,7 +418,7 @@ def main(argv):
|
||||
|
||||
executeCommand("sed -e '1s/<?[^?]*?>//' " + CONFIGPATH + "/extensions.xml > " + XEPPATH + "/../includes/xeplist.txt")
|
||||
|
||||
#executeCommand("rm -rfd /tmp/xepbuilder")
|
||||
executeCommand("rm -rfd /tmp/xepbuilder")
|
||||
|
||||
makeBundle()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user