Skip to content

Commit 178cd73

Browse files
committed
fall back to $HOME
1 parent 3606759 commit 178cd73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common-tools/clas-utils/src/main/java/org/jlab/utils/system/ClasUtilsFile.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public static String getCoatjavaRuntimeDir() {
6060
ret = "/" + String.join("/", Arrays.copyOfRange(d,0,d.length-3));
6161

6262
}
63+
if (!(new File(ret)).isDirectory()) {
64+
ret = System.getenv("HOME")+"/sw/coatjava/coatjava";
65+
}
6366
return ret;
6467
}
6568

0 commit comments

Comments
 (0)