From 41ab48bc6e5cda9125d895030396db0610f3ff26 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 3 Jun 2014 17:19:00 -0700 Subject: [PATCH] Use path.join instead of path.resolve This ensures the case of the path is consistent with how require resolves paths. Closes #2486 --- src/atom.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/atom.coffee b/src/atom.coffee index bed5657e4..923e80549 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -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