Skip to content

Commit

Permalink
using path.resolve() to settle this load path madness
Browse files Browse the repository at this point in the history
  • Loading branch information
jdan committed Nov 9, 2013
1 parent 1584715 commit 84c820b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cleaver.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var helper;

function Cleaver(file) {
if (!file) throw "!! Please specify a file to parse";
this.file = path.normalize(process.cwd() + '/' + file);
this.file = path.resolve(file);

helper = require('./helper')(this.file);

Expand Down

0 comments on commit 84c820b

Please sign in to comment.