mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/file-setup.git
synced 2025-01-12 19:20:34 +00:00
don't remove input files
This commit is contained in:
parent
4e17867248
commit
298a7291ea
@ -45,9 +45,6 @@ def merge_images(input_dir, output_dir, output_file_base, zip):
|
||||
+ '-path "{o}" @"{i}"/file_list.txt').format(i=input_dir,
|
||||
o=tmp_dir)
|
||||
subprocess.run(cmd, shell=True)
|
||||
# remove image files
|
||||
cmd = 'xargs rm <{i}/file_list.txt'.format(i=input_dir)
|
||||
subprocess.run(cmd, shell=True)
|
||||
# remove file list
|
||||
cmd = 'rm "{i}"/file_list.txt'.format(i=input_dir)
|
||||
subprocess.run(cmd, shell=True)
|
||||
@ -58,7 +55,7 @@ def merge_images(input_dir, output_dir, output_file_base, zip):
|
||||
ofb=output_file_base)
|
||||
subprocess.run(cmd, shell=True)
|
||||
# remove single pdf files
|
||||
cmd = 'rm -fr {i}/tmp'.format(i=input_dir)
|
||||
cmd = 'rm -r {tmp_i}'.format(tmp_i=tmp_dir)
|
||||
subprocess.run(cmd, shell=True)
|
||||
# zip stuff
|
||||
if zip is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user