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:
parent
3d5173f257
commit
25ea6ed500
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user