rename src/nepi/ into just nepi/
[nepi.git] / nepi / execution / resource.py
similarity index 99%
rename from src/nepi/execution/resource.py
rename to nepi/execution/resource.py
index 4394130..1d85ee0 100644 (file)
@@ -1184,8 +1184,14 @@ def find_types():
     """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