update to fix for XDCTOOLS-362
reordered the directories to search in
diff --git a/src/packages/xdc/rov/Model.xs b/src/packages/xdc/rov/Model.xs
index eef5525..64bfb88 100644
--- a/src/packages/xdc/rov/Model.xs
+++ b/src/packages/xdc/rov/Model.xs
@@ -864,18 +864,18 @@
else if (File.exists(fPath + "syscfg/" + sysconfigFile)) {
locatedFile = fPath + "syscfg/" + sysconfigFile;
}
- else if (File.exists(fPath + "/../../" + sysconfigFile)) {
- locatedFile = fPath + "/../../" + sysconfigFile;
- }
- else if (File.exists(fPath + "/../../syscfg/" + sysconfigFile)) {
- locatedFile = fPath + "/../../syscfg/" + sysconfigFile;
- }
else if (File.exists(fPath + "/../" + sysconfigFile)) {
locatedFile = fPath + "/../" + sysconfigFile;
}
else if (File.exists(fPath + "/../syscfg/" + sysconfigFile)) {
locatedFile = fPath + "/../syscfg/" + sysconfigFile;
}
+ else if (File.exists(fPath + "/../../" + sysconfigFile)) {
+ locatedFile = fPath + "/../../" + sysconfigFile;
+ }
+ else if (File.exists(fPath + "/../../syscfg/" + sysconfigFile)) {
+ locatedFile = fPath + "/../../syscfg/" + sysconfigFile;
+ }
if (locatedFile != "") {
return (String(File.getCanonicalPath(locatedFile)));
}