Skip to content

Commit

Permalink
change some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Vortex2Oblivion committed Nov 24, 2023
1 parent a3f42e6 commit 7043ed5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 49 deletions.
19 changes: 7 additions & 12 deletions test/demos/extending python/src/Main.hx
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
package;

import hxpy.PythonExtend;
import hxpy.PythonOpen;
import hxpy.PythonFile;
import hxpy.Python;
import addon.SpamModule;


import hxpy.Python.File;

class Main {
public static function main():Void {
//tracing some basic copyright and version information
trace("Python Ver: " + Python.VERSION);
SpamModule.spam_system(null,null);
PythonOpen.pythonInitialize(); // Initializes python
PythonFile.pythonRunSimpleFile("script.py"); // runs code
PythonOpen.pythonFinalize(); // closes python
//initializes the python instance
Python.initialize();
//runs code path to script file
File.runSimpleFile("script.py");
//closes the python instance
Python.finalize();
}
}
7 changes: 0 additions & 7 deletions test/demos/extending python/src/addon/Build.xml

This file was deleted.

14 changes: 0 additions & 14 deletions test/demos/extending python/src/addon/SpamModule.hx

This file was deleted.

14 changes: 0 additions & 14 deletions test/demos/extending python/src/addon/include/spammodule.c

This file was deleted.

2 changes: 1 addition & 1 deletion test/demos/running code from a file/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pythonRunSimpleFile
# running code from a file

This demo is to showcase the ability to run a python script from a file. No extending yet!
## Status
Expand Down
2 changes: 1 addition & 1 deletion test/demos/running code without a file/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pythonRunSimpleString
# running code without a file

This demo is to showcase the pythonRunSimpleString function, this function should allow for the use of running python code directly within the application. Don't know why anyone would use that over actually adding it in normally *cough cough psych engine cough cough* but its there ig.
## Status
Expand Down

0 comments on commit 7043ed5

Please sign in to comment.