()
| 60 | |
| 61 | |
| 62 | def main(): |
| 63 | ignore_dirs = [".git", "__pycache__", ".idea", "venv", "env"] |
| 64 | ignore_files = [".DS_Store"] |
| 65 | args = parse_args() |
| 66 | if args.i: |
| 67 | ignore_files.extend(args.i.split(",")) |
| 68 | if args.I: |
| 69 | ignore_dirs.extend(args.I.split(",")) |
| 70 | dir_path = args.dir_path |
| 71 | zip_name = args.zip_name or os.path.basename(dir_path) + ".zip" |
| 72 | if args.o: |
| 73 | zip_name = os.path.join(args.o, os.path.basename(zip_name)) |
| 74 | |
| 75 | zip(dir_path, zip_name, ignore_dirs=ignore_dirs, ignore_files=ignore_files) |
nothing calls this directly
no test coverage detected