aboutsummaryrefslogtreecommitdiff
path: root/src/gui_merge.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-06-22 16:30:20 +0200
committerThomas White <taw@physics.org>2021-06-22 16:30:20 +0200
commit67151e4f1c3939ca6e7de13b4ed499875f694e49 (patch)
treee1bd5058461536717672a40dd15616db9375c6e6 /src/gui_merge.c
parent00d0ba74c8019d6fc0819d4f964edeadc578d2dc (diff)
GUI: Fix paths to streams for merging and ambigator
They need to be prefixed with "../" because they are in a different folder.
Diffstat (limited to 'src/gui_merge.c')
-rw-r--r--src/gui_merge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui_merge.c b/src/gui_merge.c
index 367d303a..bef6d7b7 100644
--- a/src/gui_merge.c
+++ b/src/gui_merge.c
@@ -365,7 +365,7 @@ static int write_partialator_script(const char *filename,
fprintf(fh, "%s \\\n", exe_path);
for ( i=0; i<input->n_streams; i++ ) {
- fprintf(fh, "\"%s\" \\\n", input->streams[i]);
+ fprintf(fh, "\"../%s\" \\\n", input->streams[i]);
}
fprintf(fh, " --model=%s", params->model);
@@ -427,7 +427,7 @@ static void add_process_hkl(FILE *fh,
fprintf(fh, "%s \\\n", exe_path);
for ( i=0; i<input->n_streams; i++ ) {
- fprintf(fh, " \"%s\" \\\n", input->streams[i]);
+ fprintf(fh, " \"../%s\" \\\n", input->streams[i]);
}
fprintf(fh, " -o \"%s%s\"", out_hkl, out_suffix);