diff options
author | Kali Kaneko <kali@leap.se> | 2017-08-15 22:14:24 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-08-30 16:17:54 -0400 |
commit | f23f2fd7dc530e4b4502c2cf2e771f91644b35ef (patch) | |
tree | f622a7ffee67533ddfd8b8f46b5d195c3eea87e8 /pkg/tools/upgrade_all.py | |
parent | f717c55d1f34ae94b71d5a91b692ae8240bab890 (diff) |
[style] pep8
Diffstat (limited to 'pkg/tools/upgrade_all.py')
-rw-r--r-- | pkg/tools/upgrade_all.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/tools/upgrade_all.py b/pkg/tools/upgrade_all.py new file mode 100644 index 00000000..0732285d --- /dev/null +++ b/pkg/tools/upgrade_all.py @@ -0,0 +1,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) |