Browse Source

Don't try to delete temp files in FindPython, they're already being deleted

Caleb James DeLisle 3 years ago
parent
commit
403f68c3ec
1 changed files with 0 additions and 7 deletions
  1. 0 7
      node_build/FindPython.js

+ 0 - 7
node_build/FindPython.js

@@ -48,13 +48,6 @@ var find = module.exports.find = function (tempFile, callback) {
             py.stdout.on('data', function (dat) { console.log(dat.toString('utf8')); });
             py.on('close', function(ret) {
                 if (ret === 0) {
-                    Fs.exists(tempFile, waitFor(function (exists) {
-                        if (!exists) { return; }
-
-                        Fs.unlink(tempFile, waitFor(function (err) {
-                            if (err) { throw err; }
-                        }));
-                    }));
                     callback(undefined, python);
                     waitFor.abort();
                 } else {