Merge pull request #12306 from atom/as-fix-missing-atom-home-path

Don't throw an error when $ATOM_HOME does not exist
This commit is contained in:
Antonio Scandurra
2016-08-03 16:28:32 +02:00
committed by GitHub

View File

@@ -113,9 +113,11 @@ function setupAtomHome ({setPortable}) {
try {
atomHome = fs.realpathSync(atomHome)
} finally {
process.env.ATOM_HOME = atomHome
} catch (e) {
// Don't throw an error if atomHome doesn't exist.
}
process.env.ATOM_HOME = atomHome
}
function setupCompileCache () {