beremiz

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.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# See COPYING.Runtime file for copyrights details.
LogLevels = ["CRITICAL", "WARNING", "INFO", "DEBUG"]
LogLevelsCount = len(LogLevels)
LogLevelsDict = dict(zip(LogLevels, range(LogLevelsCount)))
LogLevelsDefault = LogLevelsDict["DEBUG"]