def dist_is_editable(dist):
 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

def dist_is_editable ( dist ) : 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
is distribution an editable install? .