Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Apr 5, 2022
1 parent f565df5 commit dc6b21b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setuptools/config/expand.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,12 @@ def find_packages(
where = kwargs.pop('where', ['.'])
packages: List[str] = []
fill_package_dir = {} if fill_package_dir is None else fill_package_dir
find = list(unique_everseen(always_iterable(where)))
search = list(unique_everseen(always_iterable(where)))

if len(find) == 1 and all(not _same_path(find[0], x) for x in (".", root_dir)):
fill_package_dir.setdefault("", find[0])
if len(search) == 1 and all(not _same_path(search[0], x) for x in (".", root_dir)):
fill_package_dir.setdefault("", search[0])

for path in find:
for path in search:
package_path = _nest_path(root_dir, path)
pkgs = PackageFinder.find(package_path, **kwargs)
packages.extend(pkgs)
Expand Down

0 comments on commit dc6b21b

Please sign in to comment.