Skip to content

Commit 6e8fd1f

Browse files
committed
Correctly get site_packages Resource in pypi.py
Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent 7366942 commit 6e8fd1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packagedcode/pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def assign_package_to_resources(cls, package, resource, codebase, package_adder)
316316
Assign files to package for an installed wheel. This requires a bit
317317
of navigation around as the files can be in multiple places.
318318
"""
319-
site_packages = resource.parent(codebase).parent(codebase).parent(codebase)
319+
site_packages = resource.parent(codebase).parent(codebase)
320320
if not site_packages:
321321
return
322322
package_data = resource.package_data

0 commit comments

Comments
 (0)