mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-25 22:34:24 +00: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'
|
return 'Creating'
|
||||||
|
|
||||||
def run(self):
|
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
|
comp = zipfile.ZIP_STORED if self.compresslevel == 0 else zipfile.ZIP_DEFLATED
|
||||||
|
|
||||||
with zipfile.ZipFile(outfile, mode='w', compression=comp) as zf:
|
with zipfile.ZipFile(outfile, mode='w', compression=comp) as zf:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user