Commits

Alex Grönholm  committed 6b534b1

Fix uninstallation on Windows (fixes #58)

  • Participants
  • Parent commits 657d9e6

Comments (0)

Files changed (2)

File docs/news.txt

 hg tip
 ------
 
+* Fixed uninstallation on Windows
+
 0.6.3
 -----
 
                 self.save_dir = tempfile.mkdtemp(suffix='-uninstall',
                                                  prefix='pip-')
                 for path in paths:
-                    new_path = os.path.join(self.save_dir,
-                                            path.lstrip(os.path.sep))
+                    new_path = os.path.splitdrive(path)[1].lstrip(os.path.sep)
+                    new_path = os.path.join(self.save_dir, new_path)
                     logger.info('Removing file or directory %s' % path)
                     self._moved_paths.append(path)
                     renames(path, new_path)