Permalink
Browse files

Fixed install bug when NODE_PATH wasn't set (regardless of whether or…

… not setup.py tries to build coffeescript).
  • Loading branch information...
1 parent 35463ea commit 17e7f9525f7b14224de2222a9e79dd2117c0ef4e @fish2000 committed Dec 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 distributors/coffeescript.py
@@ -37,12 +37,12 @@ def js_download_storage():
def coffeescript_node_lib_cmds():
return [join(pth, 'coffee-script', 'bin') \
- for pth in environ['NODE_PATH'].split(':') \
+ for pth in environ.get('NODE_PATH', '').split(':') \
if bool(len(pth)) and isdir(pth)]
def uglification_node_lib_cmds():
return [join(pth, 'uglify-js', 'bin') \
- for pth in environ['NODE_PATH'].split(':') \
+ for pth in environ.get('NODE_PATH', '').split(':') \
if bool(len(pth)) and isdir(pth)]
def coffeescript_cmd():

0 comments on commit 17e7f95

Please sign in to comment.