From 60f487da380cba2623c61223f9ef9c4d730f4fb9 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 29 Oct 2016 12:35:16 -0400 Subject: [PATCH] use path join --- lib/blockchain.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/blockchain.js b/lib/blockchain.js index 32fe06e5..7e060ce5 100644 --- a/lib/blockchain.js +++ b/lib/blockchain.js @@ -2,6 +2,7 @@ var mkdirp = require('mkdirp'); var wrench = require('wrench'); var colors = require('colors'); var GethCommands = require('./geth_commands.js'); +var path = require('path'); var Blockchain = function(blockchainConfig, Client) { this.blockchainConfig = blockchainConfig; @@ -54,7 +55,7 @@ Blockchain.prototype.initChainAndGetAddress = function() { mkdirp.sync(this.datadir); // copy mining script - wrench.copyDirSyncRecursive(__dirname + "/../js", ".embark/development/js", {forceDelete: true}); + wrench.copyDirSyncRecursive(path.join(__dirname, "/../js"), ".embark/development/js", {forceDelete: true}); // check if an account already exists, create one if not, return address result = this.runCommand(this.client.listAccountsCommand());