Were your two proto files called users.proto and users1.proto? It should
have been those file names that determined the generated code file names.
Yes, the "location" refers to the file names along with the paths leading
to them, and the packages are different in Python compared to other
languages.

On Sat, Aug 26, 2017 at 10:38 PM, Amit Saha <[email protected]> wrote:

> Hi all,
>
> The `proto3` guide (https://developers.google.com/protocol-buffers/docs/
> proto3#packages) states that  "In Python, the package directive is
> ignored, since Python modules are organized according to their location in
> the file system".
>
> I see if that i have two .proto files, one stating "package users" and the
> other "package users1", with everything else same, the generated code
> filenames are users_pb2.py and users1_pb2.py respectively. Is the
> "location" here referring to the different filenames and the fact that
> packages in other languages and that in Python are different?
>
> Thanks,
> Amit.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to