Skip to content

Commit

Permalink
Moves generated directory and changes imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwils committed Apr 9, 2024
1 parent c687bb1 commit 6edd6c9
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion canvas_sdk/effects/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from plugin_runner.generated.messages.effects_pb2 import Effect, EffectType
from generated.messages.effects_pb2 import Effect, EffectType
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions plugin_runner/runner.py → plugin_runner/plugin_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import grpc

from canvas_sdk.effects import Effect, EffectType
from generated.messages.events_pb2 import Event, EventResponse, EventType
from generated.messages.plugins_pb2 import ReloadPluginsRequest, ReloadPluginsResponse
from generated.services.plugin_runner_pb2_grpc import (
Expand Down
8 changes: 5 additions & 3 deletions protobufs/generate_protobufs.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/usr/bin/env bash

# Run this script from inside the /protobufs directory

pushd ..

python \
-m grpc_tools.protoc \
-I=protobufs/ \
--python_out=plugin_runner/ \
--pyi_out=plugin_runner/ \
--grpc_python_out=plugin_runner/ \
--python_out=./ \
--pyi_out=./ \
--grpc_python_out=./ \
protobufs/generated/**/*.proto

popd

0 comments on commit 6edd6c9

Please sign in to comment.