manim/scripts/update_protos.py
Devin Neal a6e0efc7fb
Update javascript renderer (#830)
Simplify the code and add automatic updating to the JS renderer
2020-12-19 10:38:14 -08:00

17 lines
317 B
Python
Executable file

#!/usr/bin/env python
"""
This is intended to be run from manim/grpc
"""
import os
CMD_STRING = """
poetry run python \
-m grpc_tools.protoc \
-I./proto \
--python_out=./gen \
--grpc_python_out=./gen \
./proto/frameserver.proto \
./proto/renderserver.proto
"""
os.system(CMD_STRING)