Skip to content

Commit

Permalink
remove pty.js dependency, comment out ipython for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Cooper authored and Justin Cooper committed Oct 25, 2012
1 parent 456a7f1 commit cabbd23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions helpers/exec_helper.js
@@ -1,11 +1,11 @@
var spawn = require('child_process').spawn,
pty = require('pty.js'),
//pty = require('pty.js'),
path = require('path'),
ipython, spawn_list = [];

exports.spawn_ipython = function() {
/*exports.spawn_ipython = function() {
ipython = pty.spawn('sudo', ['ipython']);
};
};*/

exports.execute_program = function(file, is_job) {

Expand All @@ -29,7 +29,7 @@ exports.stop_program = function(file, is_job) {
}
};

function execute_ipython(file, is_job) {
/*function execute_ipython(file, is_job) {
var file_path = path.resolve(__dirname + "/../" + file.path.replace('\/filesystem\/', '\/repositories\/'));
ipython.removeAllListeners('data');
require('../server').get_socket(file.username, function(socket) {
Expand All @@ -51,7 +51,7 @@ function execute_ipython(file, is_job) {
ipython.write(file_path);
ipython.write('\r\n');
}
}*/

function get_key(file) {
var key = "prog:" + file.path.replace(/\W/g, '');
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -18,7 +18,6 @@
"tty.js": "git://github.com/jwcooper/tty.js.git",
"validator": "0.x",
"winston": "0.x",
"later": "git://github.com/jwcooper/later.git",
"pty.js": "0.x"
"later": "git://github.com/jwcooper/later.git"
}
}
2 changes: 1 addition & 1 deletion server.js
Expand Up @@ -32,7 +32,7 @@ var davServer,

console.log("REPOSITORY_PATH", REPOSITORY_PATH);

exec_helper.spawn_ipython();
//exec_helper.spawn_ipython();

//check for the existence of the logs directory, if it doesn't
//exist, create it prior to starting the child process.
Expand Down

0 comments on commit cabbd23

Please sign in to comment.