Skip to content

Commit

Permalink
Reverted: getModuleLocation searches again in libs
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Mar 13, 2024
1 parent 3821c9e commit dddaa61
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/org/rascalmpl/library/util/Reflective.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<qualifiedModuleName>` not found;\n<pcfg>";
}

Expand Down

0 comments on commit dddaa61

Please sign in to comment.