From 2c387bd20bbe6944886d484bed2cf109fa2195a1 Mon Sep 17 00:00:00 2001 From: Nick Lammertyn Date: Wed, 24 Feb 2016 16:41:48 +0100 Subject: [PATCH] Path fix --- lib/compile-svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compile-svg.js b/lib/compile-svg.js index 03ca559..61462ac 100644 --- a/lib/compile-svg.js +++ b/lib/compile-svg.js @@ -31,7 +31,7 @@ SVGCompiler.prototype.processFilesForTarget = function (files) { //Iterate over files and add them to spriter files.forEach(function (file) { - var fullPath = process.env.PWD + '/' + file._resourceSlot.inputResource.path; + var fullPath = process.cwd() + '/' + file._resourceSlot.inputResource.path; var fileName = fullPath.replace(/^.*[\\\/]/, ''); var data = fs.readFileSync(fullPath, {encoding: 'utf-8'});