beremiz
Clone
Summary
Browse
Changes
Graph
Py_ext: add CSV write by String FB + refactoring
16 months ago, Edouard Tisserant
79aa1772f491
Py_ext: add CSV write by String FB + refactoring
- CSV_WRITE_BY_STR can create file from scratch
- Moved python runtime code from a string to a separate file.
#!/bin/bash
# Run python example throug command line, and check usual output
coproc setsid $BEREMIZPYTHONPATH $BEREMIZPATH/Beremiz_cli.py -k --project-home $BEREMIZPATH/exemples/python build transfer run;
while read -u ${COPROC[0]} line; do
echo "$line"
if [[ "$line" == *Grumpf* ]]; then
pkill -9 -s $COPROC_PID
exit 0
fi
done
exit 42