aboutsummaryrefslogtreecommitdiffstats
path: root/generator/nanopb_generator.py
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-11-17 15:07:12 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-12-29 20:26:57 +0200
commit356535da9bd79252e5365a6e5648b7fcd28b367c (patch)
treedcf8d3d3784d6691d16f2ac7b4b5bfecb2840c25 /generator/nanopb_generator.py
parentf4146edf01b8226709538a46919c666c37ebb50b (diff)
Move the generator .proto files to a subdir, and get rid of precompiled versions.
Diffstat (limited to 'generator/nanopb_generator.py')
-rwxr-xr-xgenerator/nanopb_generator.py4
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)