mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-11 16:35:13 +00:00
Update python3.js
This commit is contained in:
parent
1526158068
commit
cc42490106
|
@ -12,7 +12,7 @@ function PythonObject() {
|
|||
this.platfrom = platform;
|
||||
};
|
||||
|
||||
this.exec = function(scriptName, args) {
|
||||
this.execScript = function(scriptName, args) {
|
||||
return SHELL.exec([
|
||||
"bin\\python-" + this.version + "\\" + this.platform + "\\python",
|
||||
scriptName
|
||||
|
@ -21,10 +21,15 @@ function PythonObject() {
|
|||
}
|
||||
|
||||
exports.PythonObject = PythonObject;
|
||||
|
||||
exports.create = function() {
|
||||
return new PythonObject();
|
||||
};
|
||||
|
||||
exports.execScript = function(scriptName, args) {
|
||||
return (new PythonObject()).execScript(scriptName, args);
|
||||
};
|
||||
|
||||
exports.VERSIONINFO = "Python Interface (python3.js) version 0.1";
|
||||
exports.global = global;
|
||||
exports.require = global.require;
|
||||
|
|
Loading…
Reference in New Issue
Block a user