Skip to content

Commit

Permalink
#232: update for Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kray-G committed Aug 17, 2021
1 parent 54b30c4 commit 9959b81
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/mainlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,13 @@ const char *search_exec_file(kx_context_t *ctx, const char *execname)
const char *pkgname = kh_key(g_packages, k);
package_t *p = kh_value(g_packages, k);
ks_clear(ksv);
ks_appendf(ksv, "%s%clib%cpackage%c%s%c%s%cbin%c%s.kx", get_kinx_path(), PATH_DELCH, PATH_DELCH, PATH_DELCH, pkgname, PATH_DELCH, p->vers, PATH_DELCH, PATH_DELCH, execname);
ks_appendf(ksv,
#if defined(KCC_WINDOWS)
"%s%clib%cpackage%c%s%c%s%cbin%c%s.kx",
#else
"%s%ckinxlib%cpackage%c%s%c%s%cbin%c%s.kx",
#endif
get_kinx_path(), PATH_DELCH, PATH_DELCH, PATH_DELCH, pkgname, PATH_DELCH, p->vers, PATH_DELCH, PATH_DELCH, execname);
kx_trace(ctx, 0, "[exec:check] %s", ks_string(ksv));
if (file_exists(ks_string(ksv))) {
execfile = kx_const_str(ctx, ks_string(ksv));
Expand Down

0 comments on commit 9959b81

Please sign in to comment.