Advertisement
Fhernd

invocacion-archivo-python.c

Feb 22nd, 2018
1,294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include "Python.h"
  2.  
  3. int main(){
  4.     Py_Initialize();
  5.    
  6.     FILE* archivo_python = fopen("./codigo_python.py", "r");
  7.    
  8.     PyRun_SimpleFile(archivo_python, "./codigo_python.py");
  9.    
  10.     Py_Finalize();
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement