Skip to content

Commit

Permalink
Fixed error if file already exists. Fixes #249
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Feb 4, 2020
1 parent 4cec85c commit ff8c15e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodeenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,10 @@ def copy_node_from_prebuilt(env_dir, src_dir, node_version):
prefix = get_binary_prefix()
if is_WIN:
dest = join(env_dir, 'Scripts')
os.makedirs(dest)
mkdir(dest)
elif is_CYGWIN:
dest = join(env_dir, 'bin')
os.makedirs(dest)
mkdir(dest)
# write here to avoid https://bugs.python.org/issue35650
writefile(join(env_dir, 'bin', 'node'), CYGWIN_NODE)
else:
Expand Down

0 comments on commit ff8c15e

Please sign in to comment.