Skip to content

Commit

Permalink
Using path.sep when building node path and resolving file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
SwinX committed Aug 3, 2015
1 parent d00ad5b commit 64339b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/config/node-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ module.exports = inherit(require('./configurable'), /** @lends NodeConfig.protot
* @returns {String}
*/
getNodePath: function () {
return this._root + '/' + this._path;
return this._root + path.sep + this._path;
},

/**
Expand All @@ -99,7 +99,7 @@ module.exports = inherit(require('./configurable'), /** @lends NodeConfig.protot
* @returns {String}
*/
resolvePath: function (path) {
return this._root + '/' + this._path + (path ? '/' + path : '');
return this._root + path.sep + this._path + (path ? path.sep + path : '');
},

_processTarget: function (target) {
Expand Down

0 comments on commit 64339b1

Please sign in to comment.