diff --git a/src/pw3270/plugin.c b/src/pw3270/plugin.c index 77f60b6..ede142c 100644 --- a/src/pw3270/plugin.c +++ b/src/pw3270/plugin.c @@ -124,8 +124,12 @@ G_GNUC_INTERNAL void init_plugins(GtkWidget *widget) { -#ifdef DEBUG +#if defined(DEBUG) load("." G_DIR_SEPARATOR_S "plugins", widget); +#else + gchar *path = pw3270_build_filename(widget,"plugins",NULL); + load(path, widget); + g_free(path); #endif } -- libgit2 0.21.2