Hi Jameson,

On 20/09/2021 15.23, Jameson Collins wrote:
> Is there a command line method of converting .grc files to .py files?

You can use `grcc` to compile/convert flowgraphs fom the command line.

$ grcc --help
usage: grcc [-h] [-o DIR] [-u] [-r] GRC_FILE [GRC_FILE ...]

Compile a GRC file (.grc) into a GNU Radio Python program and run it.

positional arguments:
  GRC_FILE              .grc file to compile

optional arguments:
  -h, --help            show this help message and exit
  -o DIR, --output DIR  Output directory for compiled program [default=.]
  -u, --user-lib-dir    Output to default hier_block library (overwrites -o)
  -r, --run             Run the program after compiling [default=False]


Regards,
Vasil

Reply via email to