mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
synced 2024-12-26 22:14:18 +00:00
Fix zip creation
This commit is contained in:
parent
e061a7426d
commit
30d127f3af
6
nlp
6
nlp
@ -99,12 +99,16 @@ class NLPPipeline(WorkflowRunner):
|
|||||||
'''
|
'''
|
||||||
zip_jobs = []
|
zip_jobs = []
|
||||||
if self.zip is not None:
|
if self.zip is not None:
|
||||||
|
# Remove .zip file extension if provided
|
||||||
|
if self.zip.endswith('.zip'):
|
||||||
|
self.zip = self.zip[:-4]
|
||||||
|
self.zip = self.zip if self.zip else 'output'
|
||||||
cmd = 'cd "{}"'.format(self.output_dir)
|
cmd = 'cd "{}"'.format(self.output_dir)
|
||||||
cmd += ' && '
|
cmd += ' && '
|
||||||
cmd += 'zip'
|
cmd += 'zip'
|
||||||
cmd += ' -m'
|
cmd += ' -m'
|
||||||
cmd += ' -r'
|
cmd += ' -r'
|
||||||
cmd += ' "{}_-_vrt" .'.format(self.zip)
|
cmd += ' "{}".zip .'.format(self.zip)
|
||||||
cmd += ' -x "pyflow.data*"'
|
cmd += ' -x "pyflow.data*"'
|
||||||
cmd += ' -i "*.vrt"'
|
cmd += ' -i "*.vrt"'
|
||||||
cmd += ' && '
|
cmd += ' && '
|
||||||
|
Loading…
Reference in New Issue
Block a user