<reponame>edwardtoday/dotfiles
#!/usr/bin/env python 

"""
Script for upgrading all modules using pip command-line tool.
Source: http://stackoverflow.com/a/5839291/548696
"""

import pip
from subprocess import call

for dist in pip.get_installed_distributions():
    call("pip install --upgrade " + dist.project_name, shell=True)

#!/usr/bin/env python 

"""
Script for upgrading all modules using pip command-line tool.
Source: http://stackoverflow.com/a/5839291/548696
"""

import pip
from subprocess import call

for dist in pip.get_installed_distributions():
    call("pip install --upgrade " + dist.project_name, shell=True)
#!/usr/bin/env python Script for upgrading all modules using pip command-line tool. Source: http://stackoverflow.com/a/5839291/548696