diff --git a/src/org/rascalmpl/library/util/Reflective.rsc b/src/org/rascalmpl/library/util/Reflective.rsc index 3ad59b3d649..4e2646b7ef0 100644 --- a/src/org/rascalmpl/library/util/Reflective.rsc +++ b/src/org/rascalmpl/library/util/Reflective.rsc @@ -122,6 +122,13 @@ loc getModuleLocation(str qualifiedModuleName, PathConfig pcfg, str extension = return fileLoc; } } + + for(loc dir <- pcfg.libs){ + fileLoc = dir + fileName; + if(exists(fileLoc)){ + return fileLoc; + } + } throw "Module `` not found;\n"; }