From b3fdf08258e0fa35f6f2f29cebc46fa645dfed35 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 4 Sep 2013 09:00:43 -0700 Subject: [PATCH] :lipstick: path being resolved is always relative --- src/atom-window.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/atom-window.coffee b/src/atom-window.coffee index ec2af3ed1..044d9fa56 100644 --- a/src/atom-window.coffee +++ b/src/atom-window.coffee @@ -52,8 +52,7 @@ class AtomWindow ] paths.push('spec') if @isSpec - paths = paths.map (relativeOrAbsolutePath) -> - path.resolve resourcePath, relativeOrAbsolutePath + paths = paths.map (relativePath) -> path.resolve(resourcePath, relativePath) paths.push(resourcePath) process.env['NODE_PATH'] = paths.join path.delimiter