Permalink
Browse files

remove pty.js dependency, comment out ipython for now

  • Loading branch information...
1 parent 456a7f1 commit cabbd238214b4d04bbf6fb4ae3f314b4830b1c6d Justin Cooper committed Oct 25, 2012
Showing with 7 additions and 8 deletions.
  1. +5 −5 helpers/exec_helper.js
  2. +1 −2 package.json
  3. +1 −1 server.js
View
@@ -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) {
@@ -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) {
@@ -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, '');
View
@@ -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"
}
}
View
@@ -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.

0 comments on commit cabbd23

Please sign in to comment.