-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable temporary directory when running macros #129
Comments
Setting import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class TempDirExample {
public static void main(String[] args) {
// Get the value of the "java.io.tmpdir" system property
String tmpdir = System.getProperty("java.io.tmpdir");
System.out.println("Temporary directory path (java.io.tmpdir): " + tmpdir);
// Create a temporary directory and handle potential IOExceptions
try {
// Create a temporary directory
Path tempDirectory = Files.createTempDirectory("myTempDirPrefix");
// Print the path of the created temporary directory
System.out.println("Temporary directory created at: " + tempDirectory.toString());
} catch (IOException e) {
// Handle any I/O error that might occur
System.err.println("Error while creating a temporary directory: " + e.getMessage());
}
}
}
I suspect that either |
Hi @emilmelnikov, thank you so much for looking into this. I guess then I'll try zulip with the Fiji team... |
I will test it out. I think this could fix it. Thanks |
Use-case
When running ilastik via the Fiji plugin in BARD, it is desirable to run ilastik from a different container (to avoid duplication). The plugin writes temporary files per default into
/tmp
on linux, which is inside the container - so that plugin in and ilastik cannot exchange data.A solution would be to write to a path in the home folder that is mounted on both the Fiji and the ilastik container
ilastik4ij/src/main/java/org/ilastik/ilastik4ij/util/TempDir.java
Line 58 in a49f4ab
I tried
TMP
,TEMP
,TMP_DIR
but it doesn't have an effectImageJ-macosx -- -Djava.io.tempdir=/Users/kutra/scratch
but also no effectcc: @sunyi000
The text was updated successfully, but these errors were encountered: