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