From 67008e3584c180a9ca90ba9906dfe4b2d4238952 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 4 Sep 2013 08:58:44 -0700 Subject: [PATCH] Only put spec on NODE_PATH when running specs --- src/atom-window.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/atom-window.coffee b/src/atom-window.coffee index f9e6f51f5..ec2af3ed1 100644 --- a/src/atom-window.coffee +++ b/src/atom-window.coffee @@ -49,12 +49,12 @@ class AtomWindow 'vendor' 'static' 'node_modules' - 'spec' - '' ] + paths.push('spec') if @isSpec paths = paths.map (relativeOrAbsolutePath) -> path.resolve resourcePath, relativeOrAbsolutePath + paths.push(resourcePath) process.env['NODE_PATH'] = paths.join path.delimiter