From 2b5b518db88c45fc6c5927d26a9b77177e751e65 Mon Sep 17 00:00:00 2001 From: Daan Date: Fri, 30 Oct 2015 11:34:38 +0100 Subject: [PATCH] Fixed issue with path.join js error in getGoodSketchName() --- projectGeneratorElectron/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projectGeneratorElectron/index.js b/projectGeneratorElectron/index.js index 103f9171..78dbec3b 100644 --- a/projectGeneratorElectron/index.js +++ b/projectGeneratorElectron/index.js @@ -348,7 +348,8 @@ function getGoodSketchName(arg){ if (bUseMoniker){ var projectNames = new moniker.Dictionary(); - projectNames.read( path.join(__dirname, 'static', 'data', 'sketchAdjectives.txt')); + var tmpPath = require('path'); + projectNames.read( tmpPath.join(__dirname, 'static', 'data', 'sketchAdjectives.txt')); goodName = "mySketch"; while (foundOne === false) {