Skip to content

Commit

Permalink
Update check to determine the implementaion used for protobuf
Browse files Browse the repository at this point in the history
Now it can be upb, cpp or python
  • Loading branch information
GwendalRaoul committed Aug 22, 2023
1 parent 0c517ff commit 54167f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wirepas_mesh_messaging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@

# pylint: disable=locally-disabled, protected-access, wrong-import-order
try:
if api_implementation._default_implementation_type == "python":
implementation = api_implementation.Type()
if implementation == "python":
print(__warning_msg__)
else:
print("Using %s implementation for protobuf" % implementation)
except AttributeError:
print("Could not evaluate protobuf implementation type")

Expand Down

0 comments on commit 54167f8

Please sign in to comment.