Skip to content

Commit

Permalink
bin: Include logo along kernel spec
Browse files Browse the repository at this point in the history
Closes #19
  • Loading branch information
n-riesco committed May 18, 2015
1 parent 26fabcb commit 9c9d36a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/ijavascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,17 @@ exec("ipython --version && ipython locate", function(error, stdout, stderr) {
language: "javascript",
};
fs.writeFileSync(config.ijsKernelSpecFile, JSON.stringify(ijsSpec));

logos = [
"logo-32x32.png",
"logo-64x64.png",
];
logos.forEach(function(logo) {
fs.writeFileSync(
path.join(config.ijsKernelSpecDir, logo),
fs.readFileSync(path.join(config.rootPath, "images", logo))
);
});
}

if (config.runIPython) {
Expand Down

0 comments on commit 9c9d36a

Please sign in to comment.