Skip to content

Commit

Permalink
Use path helper for cross platform compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
coaxial committed Sep 3, 2016
1 parent 3aa0420 commit 8f20d6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/config_reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

const nconf = require('nconf');
const debug = require('debug')('configReader');
const path = require('path');

const configReader = function configReader(config_file_path) {
nconf.file(config_file_path);
nconf.file(path.normalize(config_file_path));
debug(`loaded config '${config_file_path}'`);

const get = function get(var_name) {
Expand Down

0 comments on commit 8f20d6d

Please sign in to comment.