loader: add contrib to the default path of projects
[nit.git] / src / loader.nit
index 1f3f72c..d29ae79 100644 (file)
@@ -52,6 +52,8 @@ redef class ModelBuilder
                var nit_dir = toolcontext.nit_dir
                var libname = nit_dir/"lib"
                if libname.file_exists then paths.add(libname)
+               libname = nit_dir/"contrib"
+               if libname.file_exists then paths.add(libname)
        end
 
        # Load a bunch of modules.