From 25ea6ed500db58f786008304c9c427d56ee60a35 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 19 Feb 2024 05:00:08 +0300 Subject: [PATCH] scripts: waifulib: don't use relative path while creating ZIP file (so cwd might not be equal to sources path) --- scripts/waifulib/zip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/waifulib/zip.py b/scripts/waifulib/zip.py index 6e903ba7..c3d0e9ef 100644 --- a/scripts/waifulib/zip.py +++ b/scripts/waifulib/zip.py @@ -16,7 +16,7 @@ class ziparchive(Task.Task): return 'Creating' def run(self): - outfile = self.outputs[0].path_from(self.outputs[0].ctx.launch_node()) + outfile = self.outputs[0].abspath() comp = zipfile.ZIP_STORED if self.compresslevel == 0 else zipfile.ZIP_DEFLATED with zipfile.ZipFile(outfile, mode='w', compression=comp) as zf: