Skip to content

Commit

Permalink
Update Python.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Vortex2Oblivion authored Jan 8, 2024
1 parent 09e72d5 commit 614a7ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hxpy/Python.hx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ extern class Python
*/
public static inline function runSimpleFile(filetoParse:String):Void {
untyped __cpp__('
#include <string>
#include <iostream>
using std::string;
using namespace std;
PyObject *obj = Py_BuildValue("s", filetoParse.c_str());
FILE* PScriptFile = _Py_fopen_obj(obj, "r+");
if(PScriptFile){
Expand Down

0 comments on commit 614a7ee

Please sign in to comment.