From ff8c15ead9aeb5d9ac8f003cb0966b43fc57a440 Mon Sep 17 00:00:00 2001 From: Eugene Kalinin Date: Tue, 4 Feb 2020 11:12:21 +0300 Subject: [PATCH] Fixed error if file already exists. Fixes #249 --- nodeenv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodeenv.py b/nodeenv.py index 68ccf15..c4e146a 100755 --- a/nodeenv.py +++ b/nodeenv.py @@ -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: