mirror of
https://github.com/atom/atom.git
synced 2026-01-21 04:48:12 -05:00
Use path.join instead of path.resolve
This ensures the case of the path is consistent with how require resolves paths. Closes #2486
This commit is contained in:
@@ -151,8 +151,8 @@ class Atom extends Model
|
|||||||
{devMode, safeMode, resourcePath} = @getLoadSettings()
|
{devMode, safeMode, resourcePath} = @getLoadSettings()
|
||||||
configDirPath = @getConfigDirPath()
|
configDirPath = @getConfigDirPath()
|
||||||
|
|
||||||
# Add 'src/exports' to module search path.
|
# Add 'exports' to module search path.
|
||||||
exportsPath = path.resolve(resourcePath, 'exports')
|
exportsPath = path.join(resourcePath, 'exports')
|
||||||
require('module').globalPaths.push(exportsPath)
|
require('module').globalPaths.push(exportsPath)
|
||||||
# Still set NODE_PATH since tasks may need it.
|
# Still set NODE_PATH since tasks may need it.
|
||||||
process.env.NODE_PATH = exportsPath
|
process.env.NODE_PATH = exportsPath
|
||||||
|
|||||||
Reference in New Issue
Block a user