mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
synced 2024-12-25 20:34: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 = []
|
||||
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 += ' && '
|
||||
cmd += 'zip'
|
||||
cmd += ' -m'
|
||||
cmd += ' -r'
|
||||
cmd += ' "{}_-_vrt" .'.format(self.zip)
|
||||
cmd += ' "{}".zip .'.format(self.zip)
|
||||
cmd += ' -x "pyflow.data*"'
|
||||
cmd += ' -i "*.vrt"'
|
||||
cmd += ' && '
|
||||
|
Loading…
Reference in New Issue
Block a user