blob: 0732285d633b5b6eb9147d9f5e85adb1637735df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import os
import sys
import pip
from subprocess import call
if not os.environ.get('VIRTUAL_ENV'):
print('[!] Should call this script inside a virtualenv, I do not want to '
'mess with your system. Bye!')
sys.exit(1)
for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
|