Anki/pylib/tools/protoc-gen-mypy.py
Damien Elmes e7483edee7 update mypy and other Python deps
latest mypy_protobuf can no longer be run directly, so we need
to run a wrapper instead
2021-02-01 15:50:04 +10:00

9 lines
227 B
Python
Executable file

# copied from mypy_protobuf:bin - simple launch wrapper
import re
import sys
from mypy_protobuf import main
if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
sys.exit(main())