Hi,

I'm wondering if it's possible to provide a globally accessible import 
similar to what you do for google protobuf packages:

```
import "google/protobuf/descriptor.proto";
```

For example,

// current relative path: `path/to/schemas/test_message.proto`
```
syntax="proto2";

import "path/to/schemas/global.proto";

message TestMessage {

    option (custom_option).meta_data_1 = "pipes";

}
```

One major caveat is that when I'm compiling to python bindings, the only 
way I've managed to get the import paths inserted correctly into 
`test_message_pb2.py` is to copy `global.proto` to the same path as 
`test_message.proto` and compiling like:

`protoc --python_out . path/to/schemas/global.proto 
path/to/schemas/test_message.proto`

This issue describes some of the import pathing issues with Python3:

   - https://github.com/protocolbuffers/protobuf/issues/1491 

Any guidance / recommended approach would be appreciated 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/b690ec42-f260-455b-a0b8-244c55e6c4f0n%40googlegroups.com.

Reply via email to