Merged in [16600] from rjsparks@nostrum.com:
Fixed a subtle bug in the code that converts slides to PDF that was writing back into settings. - Legacy-Id: 16645 Note: SVN reference [16600] has been migrated to Git commit b4714f95579efcb5051438239a5df002036c9975
This commit is contained in:
parent
7e34b3cd60
commit
b2be7975c9
|
@ -275,7 +275,7 @@ def post_process(doc):
|
|||
'''
|
||||
if is_powerpoint(doc) and hasattr(settings,'SECR_PPT2PDF_COMMAND'):
|
||||
try:
|
||||
cmd = settings.SECR_PPT2PDF_COMMAND
|
||||
cmd = list(settings.SECR_PPT2PDF_COMMAND) # Don't operate on the list actually in settings
|
||||
cmd.append(doc.get_file_path()) # outdir
|
||||
cmd.append(os.path.join(doc.get_file_path(),doc.uploaded_filename)) # filename
|
||||
subprocess.check_call(cmd)
|
||||
|
|
Loading…
Reference in a new issue