-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-plugin.js
More file actions
30 lines (22 loc) · 818 Bytes
/
Copy pathpython-plugin.js
File metadata and controls
30 lines (22 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var PythonRunner = require("./python-runner");
var ShellRunner = require("../cloud9.run.shell/shell").Runner;
module.exports = function setup(options, imports, register) {
var pm = imports["process-manager"];
var sandbox = imports.sandbox;
var vfs = imports.vfs;
PythonRunner.call(this, options.url, options.listenHint, vfs, pm, sandbox, function (err) {
if (err) return register(err);
register(null, {
"run-python": {
Runner: PythonRunner.Runner
}
});
});
};
(function() {
this.name = "python";
this.createChild = function(callback) {
this.args = this.pythonArgs.concat(this.file, this.scriptArgs);
ShellRunner.prototype.createChild.call(this, callback);
};
}).call(PythonRunner.Runner.prototype);