inital com

This commit is contained in:
WaterBottle committed 2025-11-22 21:58:09 +01:00
commit 6f7a5d1166
8925 files changed
+1229822

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
char RunPy(const char *py, bool _testPy = false ){
char result = {};
const char* _TestPyCode =
"print('PYTHON APPEARS TO BE WORKING!!!')";
Py_Initialize();
if(_testPy){
result = PyRun_SimpleString(_TestPyCode);
return result;
}
result = PyRun_SimpleString(py);
if (result != 0) std::cerr << "Python execution failed." << std::endl;
Py_Finalize();
return result;
}