From 67151e4f1c3939ca6e7de13b4ed499875f694e49 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 22 Jun 2021 16:30:20 +0200 Subject: GUI: Fix paths to streams for merging and ambigator They need to be prefixed with "../" because they are in a different folder. --- src/gui_ambi.c | 2 +- src/gui_merge.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; in_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; in_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; in_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); -- cgit v1.2.3