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 c2b2bc1 commit 17493c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hxpy/Python.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 17493c3

Please sign in to comment.