From 17493c3c3d43ec9664c47e2c86bd297ce182c214 Mon Sep 17 00:00:00 2001 From: Vortex <73261680+Vortex2Oblivion@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:33:29 -0500 Subject: [PATCH] Update Python.hx --- hxpy/Python.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hxpy/Python.hx b/hxpy/Python.hx index 9512dfa..34206e1 100644 --- a/hxpy/Python.hx +++ b/hxpy/Python.hx @@ -72,8 +72,8 @@ extern class Python * Function for loading Python code from a file. * @param filetoParse The path of your Python script. (eg: script.py) */ - public static inline function runSimpleFile(filetoParse:String):Void { - untyped __cpp__(' + public static function runSimpleFile(filetoParse:String):Void { + return untyped __cpp__(' PyObject *obj = Py_BuildValue("s", filetoParse.c_str()); FILE* PScriptFile = _Py_fopen_obj(obj, "r+"); if(PScriptFile){