Skip to content

Commit

Permalink
allow absolute tmp path
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Jul 5, 2022
1 parent 236d0a8 commit 32be0d2
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -337,8 +337,13 @@ public static String getVersion() {
public static File getTempPath() {
if (grobidConfig.grobid.temp == null)
return new File(System.getProperty("java.io.tmpdir"));
else
return new File(grobidHome.getPath(), grobidConfig.grobid.temp);
else {
if (!new File(grobidConfig.grobid.temp).isAbsolute()) {
return new File(grobidHome.getPath(), grobidConfig.grobid.temp);
} else {
return new File(grobidConfig.grobid.temp);
}
}
}

public static void setNativeLibraryPath(final String nativeLibPath) {
Expand Down

0 comments on commit 32be0d2

Please sign in to comment.