def get_installed_pypackages():
    return {p.project_name.lower(): p for p in pkg_resources.working_set}
def __init__(self, root, cwd, badfn=None, relativeuipath=True):
        self._root = root
        self._cwd = cwd
        if badfn is not None:
            self.bad = badfn
        self._relativeuipath = relativeuipath