Update pipreqs.py

Quick fix for #265
This commit is contained in:
jr 2022-02-14 14:40:15 +01:00 committed by GitHub
parent a593d27e3d
commit ffba188dec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,7 @@ def get_locally_installed_packages(encoding=None):
version = package[1].replace(
".dist", "").replace(".egg", "")
packages[i_item] = {
packages[package[0].lower()] = {
'version': version,
'name': package[0]
}