1#!/usr/bin/env python3
2# This file is used to invoke nanopb_generator.py as a plugin
3# to protoc on Linux and other *nix-style systems.
4# Use it like this:
5# protoc --plugin=protoc-gen-nanopb=..../protoc-gen-nanopb --nanopb_out=dir foo.proto
6
7from nanopb_generator import *
8
9if __name__ == '__main__':
10    # Assume we are running as a plugin under protoc.
11    main_plugin()
12