diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-11-17 15:07:12 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-12-29 20:26:57 +0200 |
commit | 356535da9bd79252e5365a6e5648b7fcd28b367c (patch) | |
tree | dcf8d3d3784d6691d16f2ac7b4b5bfecb2840c25 /generator/nanopb_generator.py | |
parent | f4146edf01b8226709538a46919c666c37ebb50b (diff) |
Move the generator .proto files to a subdir, and get rid of precompiled versions.
Diffstat (limited to 'generator/nanopb_generator.py')
-rwxr-xr-x | generator/nanopb_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py index d67fe94f..0002409b 100755 --- a/generator/nanopb_generator.py +++ b/generator/nanopb_generator.py @@ -16,7 +16,7 @@ except: raise try: - import nanopb_pb2 + import proto.nanopb_pb2 as nanopb_pb2 except: print print "***************************************************************" @@ -1025,7 +1025,7 @@ def main_cli(): def main_plugin(): '''Main function when invoked as a protoc plugin.''' - import plugin_pb2 + import proto.plugin_pb2 as plugin_pb2 data = sys.stdin.read() request = plugin_pb2.CodeGeneratorRequest.FromString(data) |