Advertisement
Fhernd

invocacion-codigo-python.c

Feb 22nd, 2018
1,235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.14 KB | None | 0 0
  1. #include "Python.h"
  2.  
  3. void ejecutar_python(const char* codigo){
  4.    
  5.     Py_Initialize();
  6.    
  7.     PyRun_SimpleString(codigo);
  8.    
  9.     Py_Finalize();
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement