Comment out stream_tags

This commit is contained in:
badaix 2021-06-04 10:32:33 +02:00
parent 9bbba976f9
commit 53e27e0d8b
13 changed files with 173 additions and 106 deletions

28
control/test.cpp Normal file
View file

@ -0,0 +1,28 @@
#include <iostream>
#include <pybind11/pybind11.h>
#include <pybind11/embed.h> // everything needed for embedding
namespace py = pybind11;
void say_hello()
{
// Try to import scipy
py::object scipy = py::module::import("/home/johannes/Develop/snapcast/control/meta_mpd.py");
// Equivalent to "from decimal import Decimal"
py::object Decimal = py::module::import("decimal").attr("Decimal");
// Construct a Python object of class Decimal
py::object pi = Decimal("3.14159");
py::print(py::str(pi));
py::print(pi);
py::print("Hello, World!"); // use the Python API
}
int main(int argc, char** argv)
{
py::scoped_interpreter guard{}; // start the interpreter and keep it alive
say_hello();
}