summaryrefslogtreecommitdiff
path: root/pip/commands
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2012-02-03 12:37:53 -0700
committerCarl Meyer <carl@oddbird.net>2012-02-03 12:37:53 -0700
commitec5d336254f9001fe90334ddd46d396ff03cd264 (patch)
tree239127b7cf415fafa226a8a1641f88d906e8633e /pip/commands
parentc02811f3d8dfdc4c02835e04ffcc87dc77fd4e84 (diff)
downloadpip-ec5d336254f9001fe90334ddd46d396ff03cd264.tar.gz
Fix shutil.move and test.
Diffstat (limited to 'pip/commands')
-rw-r--r--pip/commands/install.py5
1 files changed, 4 insertions, 1 deletions
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