From c5a89386f273473954ec5f9e460052c175236c16 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 15 Jul 2021 15:13:03 +0200 Subject: GUI: Run all jobs with same CWD as GUI itself This requires changing all the paths to relative ones. Previously, the jobs ran with their CWDs set to the corresponding "result" folder. The trouble is, this breaks everything that uses a relative location: image filenames, mask/satmap files referenced by the geometry, etc. Note that this change also means that the temporary folders ("indexamajig.XXX") are now produced in the top-level working directory. Eventually, a GUI option should be added to allow these folders to be put somewhere better (i.e. somewhere fast). Closes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/44 --- src/gui_ambi.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gui_ambi.h') diff --git a/src/gui_ambi.h b/src/gui_ambi.h index c6b68b35..06bafe64 100644 --- a/src/gui_ambi.h +++ b/src/gui_ambi.h @@ -40,7 +40,12 @@ extern int write_ambigator_script(const char *filename, struct gui_indexing_result *input, const char *n_thread_str, struct ambi_params *params, - const char *out_stream); + const char *out_stream, + const char *stdout_filename, + const char *stderr_filename, + const char *fg_filename, + const char *intermediate_rel_filename, + const char *harvest_filename); extern double read_ambigator_progress(char *logfile_str, int niter); -- cgit v1.2.3