From ec5d336254f9001fe90334ddd46d396ff03cd264 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Fri, 3 Feb 2012 12:37:53 -0700 Subject: Fix shutil.move and test. --- pip/commands/install.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pip/commands') diff --git a/pip/commands/install.py b/pip/commands/install.py index af03912d5..6872c0c00 100644 --- a/pip/commands/install.py +++ b/pip/commands/install.py @@ -267,7 +267,10 @@ class InstallCommand(Command): os.makedirs(options.target_dir) lib_dir = os.path.join(temp_target_dir, "lib/python/") for item in os.listdir(lib_dir): - shutil.move(os.path.join(lib_dir, item), options.target_dir) + shutil.move( + os.path.join(lib_dir, item), + os.path.join(options.target_dir, item) + ) shutil.rmtree(temp_target_dir) return requirement_set -- cgit v1.2.1