Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2012-08-07 00:22:05 +0400
committerNathan Rajlich <nathan@tootallnate.net>2012-08-07 00:22:05 +0400
commit093be8b16bb153d18bfec752d42f8b79a8958800 (patch)
treec3cd924617ddffedce9c69035bd0fc65b69cbf69 /tools
parentcaf69aa91a94c7c05574afc9fcc97f45aa8d5ea5 (diff)
install: prevent a KeyError from being thrown when PORTABLE is not set
Diffstat (limited to 'tools')
-rwxr-xr-xtools/install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/install.py b/tools/install.py
index 1dd039a8653..028e5ca73b6 100755
--- a/tools/install.py
+++ b/tools/install.py
@@ -154,7 +154,7 @@ def npm_files(action):
action([link_path], 'bin/npm')
elif action == install:
try_symlink('../lib/node_modules/npm/bin/npm-cli.js', link_path)
- if os.environ['PORTABLE']:
+ if os.environ.get('PORTABLE'):
# This crazy hack is necessary to make the shebang execute the copy
# of node relative to the same directory as the npm script. The precompiled
# binary tarballs use a prefix of "/" which gets translated to "/bin/node"