diff options
author | Thomas White <taw@physics.org> | 2022-07-06 13:41:08 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2022-07-06 13:41:08 +0200 |
commit | 5b087416a02a53c61d0827ee4bad50370320a0fb (patch) | |
tree | a52bea18f36b2d2ff6056c57952d289ada56f089 /src/gui_ambi.c | |
parent | d8e55abe45fa3efe1a886a34c46523f3c1f3ef23 (diff) |
GUI: Invoke programs without path
Including the path wasn't working very well. One of the problems is
that it prevents the use of a wrapper script for the programs, which is
needed for certain environments. This commit just removes the path
prefixes altogether.
Diffstat (limited to 'src/gui_ambi.c')
-rw-r--r-- | src/gui_ambi.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui_ambi.c b/src/gui_ambi.c index b160c6ec..d07efcf5 100644 --- a/src/gui_ambi.c +++ b/src/gui_ambi.c @@ -486,7 +486,6 @@ int write_ambigator_script(const char *filename, const char *harvest_filename) { FILE *fh; - char *exe_path; int i; fh = fopen(filename, "w"); @@ -500,9 +499,7 @@ int write_ambigator_script(const char *filename, } fprintf(fh, " > %s\n", intermediate_rel_filename); - exe_path = get_crystfel_exe("ambigator"); - if ( exe_path == NULL ) return 1; - fprintf(fh, "%s %s \\\n", exe_path, intermediate_rel_filename); + fprintf(fh, "ambigator %s \\\n", intermediate_rel_filename); fprintf(fh, " -j %s", n_thread_str); fprintf(fh, " -o \"%s\"", out_stream); |