8000 bug fix last bug fix · winpython/winpython@6d72aad · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d72aad

Browse files
author
stonebig
committed
bug fix last bug fix
1 parent d664f0d commit 6d72aad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

winpython/wppm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def get_installed_packages(self):
328328
try:
329329
if os.path.dirname(sys.executable) == self.target:
330330
# direct way: we interrogate ourself
331-
import pip
331+
import imp, pip
332332
pip.utils.pkg_resources = imp.reload(pip.utils.pkg_resources)
333333
pip_list = [(i.key, i.version)
334334
for i in pip.get_installed_distributions()]
@@ -493,7 +493,7 @@ def uninstall(self, package):
493493
package.remove_log(self.logdir)
494494
elif not package.name == 'pip':
495495
# trick to get true target (if not current)
496-
this_executable_path = os.path.dirname(self.logdir)
496+
this_executable_path = os.path.dirname(self.logdir)
497497
subprocess.call([this_executable_path + r'\python.exe',
498498
'-m', 'pip', 'uninstall', package.name, '-y'],
499499
cwd=this_executable_path)

0 commit comments

Comments
 (0)
0