# -*- coding: utf-8 -*- | |
''' | |
''' | |
import sys | |
import pkg_resources | |
def get_installed_distributions(): | |
""" Returns list of pkg Distribution objects found is sys.path | |
""" | |
pkgs = [] | |
for p in sys.path: | |
for d in pkg_resources.find_distributions(p): | |
pkgs.append(d) | |
return pkgs |