def update_search_path(self): """ Add our module search paths to the installer so we can source eggs from local disk. Uses CONFIG.installer_search_path, and scans one directory deep within each path component. """ search_path = CONFIG.installer_search_path if search_path: log.info("Scanning virtualenv search path {0}.." .format(search_path)) for path_component in [_p(i) for i in search_path]: if path_component.exists(): self._env.scan([path_component] + path_component.dirs()) log.info("Done")
def update_search_path(self): """ Add our module search paths to the installer so we can source eggs from local disk (or whatever that counts for around here :p) Uses ``$VIRTUALENV_SEARCH_PATH`` from the environment as the module search path, and scans one directory deep within each ':' separated path component. """ search_path = CONFIG.installer_search_path if search_path: log.info("Scanning virtualenv search path %s.." % search_path) for path_component in set([_p(i.strip()) for i in search_path.split(':') if i.strip()]): if path_component.exists(): self._env.scan([path_component] + path_component.dirs()) log.info("Done")