summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--decode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/decode.c b/decode.c
index 7bbcff3..b57dff5 100644
--- a/decode.c
+++ b/decode.c
@@ -32,7 +32,12 @@ int sigrokdecode_init(void)
Py_Initialize();
/* FIXME */
+ /* Allows for ./gui/sigrok-gui in the top-level directory. */
PySys_SetPath("libsigrokdecode/scripts");
+ /* Allows for ./sigrok-gui in the gui/ directory. */
+ PySys_SetPath("../libsigrokdecode/scripts");
+ /* Allows for sigrok-gui from anywhere given sigrok is installed. */
+ PySys_SetPath("/usr/local/share/sigrok");
return 0;
}