Use path.join instead of path.resolve

This ensures the case of the path is consistent with how require resolves
paths.

Closes #2486
Esse commit está contido em:
Kevin Sawicki
2014-06-03 17:19:00 -07:00
commit 41ab48bc6e
+2 -2
Ver Arquivo
@@ -151,8 +151,8 @@ class Atom extends Model
{devMode, safeMode, resourcePath} = @getLoadSettings()
configDirPath = @getConfigDirPath()
# Add 'src/exports' to module search path.
exportsPath = path.resolve(resourcePath, 'exports')
# Add 'exports' to module search path.
exportsPath = path.join(resourcePath, 'exports')
require('module').globalPaths.push(exportsPath)
# Still set NODE_PATH since tasks may need it.
process.env.NODE_PATH = exportsPath