Skip to content

Commit

Permalink
Update Main.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Vortex2Oblivion authored Jan 8, 2024
1 parent 14c18ac commit 09e72d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/demos/running code from a file/src/Main.hx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package;

import hxpy.Python;
import hxpy.Python.File;

class Main {
public static function main():Void {
//initializes the python instance
Python.initialize();
//runs code path to script file
File.runSimpleFile("script.py");
Python.runSimpleFile("script.py");
//closes the python instance
Python.finalize();
}
Expand Down

0 comments on commit 09e72d5

Please sign in to comment.