mirror of
https://github.com/Virtual-World-RE/NeoGF.git
synced 2024-11-15 12:45:34 +01:00
Update pzztool.py
This commit is contained in:
parent
43f58389ab
commit
cf341047c1
|
@ -391,6 +391,7 @@ if __name__ == '__main__':
|
||||||
# Si on a pas la bonne extension on ne compresse pas le fichier
|
# Si on a pas la bonne extension on ne compresse pas le fichier
|
||||||
if not args.disable_ignore and Path(filename).suffix == ".pzzp":
|
if not args.disable_ignore and Path(filename).suffix == ".pzzp":
|
||||||
logging.warning(f"Ignored - {filename} - bad extension - musn't be a pzzp")
|
logging.warning(f"Ignored - {filename} - bad extension - musn't be a pzzp")
|
||||||
|
if p_input != p_output:
|
||||||
shutil.copy(p_input / filename, p_output / filename)
|
shutil.copy(p_input / filename, p_output / filename)
|
||||||
continue
|
continue
|
||||||
logging.info(f"Compressing {filename}")
|
logging.info(f"Compressing {filename}")
|
||||||
|
@ -404,6 +405,7 @@ if __name__ == '__main__':
|
||||||
for filename in listdir(p_input):
|
for filename in listdir(p_input):
|
||||||
if not args.disable_ignore and Path(filename).suffix != ".pzzp":
|
if not args.disable_ignore and Path(filename).suffix != ".pzzp":
|
||||||
logging.warning(f"Ignored - {filename} - bad extension - must be a pzzp")
|
logging.warning(f"Ignored - {filename} - bad extension - must be a pzzp")
|
||||||
|
if p_input != p_output:
|
||||||
shutil.copy(p_input / filename, p_output / filename)
|
shutil.copy(p_input / filename, p_output / filename)
|
||||||
continue
|
continue
|
||||||
logging.info(f"Decompressing {filename}")
|
logging.info(f"Decompressing {filename}")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user