We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46d5bb5 commit 280725eCopy full SHA for 280725e
1 file changed
winpython/wppm.py
@@ -371,9 +371,13 @@ def find_package(self, name):
371
if pack.name == name:
372
return pack
373
374
+
375
def uninstall_existing(self, package):
- """Uninstall existing package"""
376
- pack = self.find_package(package.name)
+ """Uninstall existing package (or package name)"""
377
+ if isinstance(package ,str):
378
+ pack = self.find_package(package)
379
+ else:
380
+ pack = self.find_package(package.name)
381
if pack is not None:
382
self.uninstall(pack)
383
0 commit comments