I would like to send a command to the interpreter and get the return of this command.
I'm actually using PyRun_String
and it's working greatly but I have to pass in args Py_single_input
if I want to init a variable like a = 10
then I get none
.
If I want to send a
I have to put Py_eval_input
in args then I get 10
.
So my problem is how I can merge Py_single_input
and Py_eval_input
to use this both fonction in a same function.
or
Is there another function other than Pyrun_String
?