diff --git a/src/utils.coffee b/src/utils.coffee index 01fea633..4e541e55 100644 --- a/src/utils.coffee +++ b/src/utils.coffee @@ -19,7 +19,7 @@ exports.getDeviceUuid = -> # Parses package.json and returns resin-supervisor's version exports.getSupervisorVersion = -> - fs.readFileAsync '../package.json', 'utf-8' + fs.readFileAsync(__dirname + '/../package.json', 'utf-8') .then (data) -> obj = JSON.parse data return obj.version