Skip to content

Commit a047be2

Browse files
committed
updated upypip to include uninstallAll command
1 parent df3325d commit a047be2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎Content/Scripts/upypip.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,10 @@ def list(self):
6868
t = Thread(target=action)
6969
t.start()
7070

71+
def uninstallAll(self):
72+
PipInstall.modules = None #our cache is no longer valid
73+
action = self.pipModuleAction
74+
t = Thread(target=action, args=('freeze','> unins && pip uninstall -y -r unins && del unins',))
75+
t.start()
76+
7177
pip = PipInstall()

0 commit comments

Comments
 (0)