Update pzztest.py

This commit is contained in:
tmpz23 2022-01-18 07:49:16 +01:00 committed by GitHub
parent 946cade8c9
commit 036c05c302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import pzztool
import shutil import shutil
__version__ = "0.0.1" __version__ = "0.0.2"
__author__ = "rigodron, algoflash, GGLinnk" __author__ = "rigodron, algoflash, GGLinnk"
__license__ = "MIT" __license__ = "MIT"
__status__ = "developpement" __status__ = "developpement"
@ -56,6 +56,9 @@ def get_argparser():
if __name__ == '__main__': if __name__ == '__main__':
if unpack_path.is_dir() or repack_path.is_dir():
raise Exception(f"Error - Please remove:\n-{unpack_path}\n{repack_path}")
args = get_argparser().parse_args() args = get_argparser().parse_args()
p_input = Path(args.input_path) p_input = Path(args.input_path)