2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

scripts: waifulib: don't use relative path while creating ZIP file (so cwd might not be equal to sources path)

This commit is contained in:
Alibek Omarov 2024-02-19 05:00:08 +03:00
parent 3d5173f257
commit 25ea6ed500

View File

@ -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: