summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/install.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/packaging/install.py')
-rw-r--r--Lib/packaging/install.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/packaging/install.py b/Lib/packaging/install.py
index 3904727..92657ea 100644
--- a/Lib/packaging/install.py
+++ b/Lib/packaging/install.py
@@ -47,10 +47,8 @@ def _move_files(files, destination):
destination = tempfile.mkdtemp()
for old in files:
- # not using os.path.join() because basename() might not be
- # unique in destination
- new = "%s%s" % (destination, old)
-
+ filename = os.path.split(old)[-1]
+ new = os.path.join(destination, filename)
# try to make the paths.
try:
os.makedirs(os.path.dirname(new))