Skip to content

Commit

Permalink
Simplify dist_is_editable
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Aug 28, 2019
1 parent 3b2d138 commit 9980841
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pip/_internal/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,7 @@ def dist_is_editable(dist):
"""
Return True if given Distribution is an editable install.
"""
for path_item in sys.path:
egg_link = os.path.join(path_item, dist.project_name + '.egg-link')
if os.path.isfile(egg_link):
return True
return False
return bool(egg_link_path(dist))


def get_installed_distributions(
Expand Down

0 comments on commit 9980841

Please sign in to comment.