You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using protoc 2.6.0 installed on OSX via brew, other _pb2.py files are imported like so:
import file_pb2
The project I'm working on sticks the protobuf generated files as a subpackage of its main python package, which seems like a pretty reasonable thing to do. Because those packages use relative imports, I'd like a protobuf option that generates this instead:
from . import file_pb2
This may be related to #7 (or solved there), as I'm using python 3 and I believe that is when python starts being picky about absolute/relative imports.
The text was updated successfully, but these errors were encountered:
Using protoc 2.6.0 installed on OSX via brew, other _pb2.py files are imported like so:
The project I'm working on sticks the protobuf generated files as a subpackage of its main python package, which seems like a pretty reasonable thing to do. Because those packages use relative imports, I'd like a protobuf option that generates this instead:
This may be related to #7 (or solved there), as I'm using python 3 and I believe that is when python starts being picky about absolute/relative imports.
The text was updated successfully, but these errors were encountered: