2014-10-20 04:56:49 +00:00
|
|
|
var fs = require('fs')
|
|
|
|
var path = require('path')
|
2014-11-15 09:21:07 +00:00
|
|
|
|
2016-12-27 06:26:05 +00:00
|
|
|
var pathFile = path.join(__dirname, 'path.txt')
|
2016-12-26 23:17:48 +00:00
|
|
|
|
|
|
|
if (fs.existsSync(pathFile)) {
|
|
|
|
module.exports = path.join(__dirname, fs.readFileSync(pathFile, 'utf-8'))
|
|
|
|
} else {
|
2017-02-08 19:36:38 +00:00
|
|
|
throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
|
2016-12-26 23:17:48 +00:00
|
|
|
}
|