"""Look into the different folders to find all the
availables Resources Managers
"""
- search_path = os.environ.get("NEPI_SEARCH_PATH", "")
- search_path = set(search_path.split(" "))
+
+ # look in NEPI_SEARCH_PATH
+ # separated with colons, like usual paths (was SPACE in nepi-3.x)
+ # add it to search path only if relevant to avoid loading modules in '.'
+ search_path = set()
+ environ = os.environ.get("NEPI_SEARCH_PATH", None)
+ if environ:
+ search_path = set(environ.split(":"))
import inspect
import nepi.resources