Skip to content

Commit c3f02a4

Browse files
fix compress_in_place
1 parent e24e72e commit c3f02a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wkcuber/compress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def compress_mag_inplace(target_path, layer_name, mag: Mag, jobs):
9393
compress_target_path = "{}.compress-{}".format(target_path, uuid4())
9494
compress_mag(target_path, layer_name, compress_target_path, mag, jobs)
9595

96-
shutil.rmtree(path.join(args.target_path, args.layer_name, str(mag)))
96+
shutil.rmtree(path.join(target_path, layer_name, str(mag)))
9797
shutil.move(
9898
path.join(compress_target_path, layer_name, str(mag)),
9999
path.join(target_path, layer_name, str(mag)),

0 commit comments

Comments
 (0)