Re: [protobuf] Is it possible to retrieve an absolute path to a proto-file from a Protoc plugin?

2017-09-25 Thread 'Feng Xiao' via Protocol Buffers
On Mon, Sep 25, 2017 at 5:21 AM, Andrew Pashkin wrote: > Hello, everyone, > > I have a case where I need to read non-Protobuf files that are referenced > from a target proto-file by a relative path. I use this approach to embed > some information in a language different than Protobuf. It seems l

[protobuf] Is it possible to retrieve an absolute path to a proto-file from a Protoc plugin?

2017-09-25 Thread Andrew Pashkin
Hello, everyone, I have a case where I need to read non-Protobuf files that are referenced from a target proto-file by a relative path. I use this approach to embed some information in a language different than Protobuf. It seems like Protoc plugins only have access to the path of target proto