protobuf: Add workaround for imports in generated files

This commit is contained in:
Björn Busse 2020-06-25 01:03:59 +02:00
parent 66679c8a8e
commit ce8a99be20

5
protobuf/__init__.py Normal file
View File

@ -0,0 +1,5 @@
# https://github.com/protocolbuffers/protobuf/issues/1491
# https://github.com/protocolbuffers/protobuf/issues/1491#issuecomment-547504972
import sys
from pathlib import Path
sys.path.append(str(Path(__file__).parent))