aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/gui_ambi.c2
-rw-r--r--src/gui_merge.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui_ambi.c b/src/gui_ambi.c
index 2a6fb06f..6e28f194 100644
--- a/src/gui_ambi.c
+++ b/src/gui_ambi.c
@@ -495,7 +495,7 @@ int write_ambigator_script(const char *filename,
fprintf(fh, "cat \\\n");
for ( i=0; i<input->n_streams; i++ ) {
- fprintf(fh, "\"%s\" \\\n", input->streams[i]);
+ fprintf(fh, "\"../%s\" \\\n", input->streams[i]);
}
fprintf(fh, " > ambigator-input.stream\n");
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);