Skip to content

compile-proto.py Script

This script compiles .proto files into Python/C++ source files for Schola.

Usage

Terminal window
usage: compile_proto [-h] [--plugin-folder PLUGIN_FOLDER] [--disable-warnings DISABLE_WARNINGS [DISABLE_WARNINGS ...]] [--add-type-stubs]

Optional Arguments

--plugin-folder

Path to the project folder, can be left blank if running from Schola Plugin directory

  • Default: '.'
  • Type: Path
  • Required: False

--disable-warnings

List of warning codes to disable during compilation

  • Default: ['4125', '4800']
  • Type: str (multiple values allowed)
  • Required: False

--add-type-stubs

Generate type stubs for the compiled protobuf files

  • Default: False
  • Required: False