Skip to content

Commit

Permalink
Use relative paths for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne authored and retrohacker committed Nov 22, 2018
1 parent 8d92c71 commit cfd9572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function getName (candidate) {
* Loads a custom logic module to populate additional distribution information
*/
function customLogic (os, name, file, cb) {
var logic = path.join(__dirname, 'logic/' + name + '.js')
var logic = './logic/' + name + '.js';
try { require(logic)(os, file, cb) } catch (e) { cb(null, os) }
}

Expand Down

0 comments on commit cfd9572

Please sign in to comment.