Skip to content

Commit cfd9572

Browse files
DonJayamanneretrohacker
authored and
retrohacker
committed
Use relative paths for modules
1 parent 8d92c71 commit cfd9572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function getName (candidate) {
121121
* Loads a custom logic module to populate additional distribution information
122122
*/
123123
function customLogic (os, name, file, cb) {
124-
var logic = path.join(__dirname, 'logic/' + name + '.js')
124+
var logic = './logic/' + name + '.js';
125125
try { require(logic)(os, file, cb) } catch (e) { cb(null, os) }
126126
}
127127

0 commit comments

Comments
 (0)