Macro python

Source
macro_rules! python {
    ($($arg: expr),*) => { ... };
}
Expand description

Runs a python file and blocks until it completes.

Useful for plotting using a file plot.py which reads some .csv file and plots the data.

§Arguments

  • arg0, arg1, arg2, ...: comma separated arguments to be passed to python3 (python filename for example)

§Requirements

python3 needs to be in PATH.

§Usage

make_csv::python!("plot.py", "data.csv");