-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3f42e6
commit 7043ed5
Showing
6 changed files
with
9 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
test/demos/extending python/src/addon/include/spammodule.c
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters