summaryrefslogtreecommitdiff
path: root/decode.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-04-06 02:11:01 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2010-04-06 02:11:01 +0200
commit3a72d2b31f43788996777b11bff672c0c0e76798 (patch)
treea7d3cf257eae328a9aa2f38d028c9eaaf2635e16 /decode.c
parent3aca097f7fa3bd75693954806d64281239cad2fd (diff)
downloadlibsigrokdecode-3a72d2b31f43788996777b11bff672c0c0e76798.tar.gz
libsigrokdecode-3a72d2b31f43788996777b11bff672c0c0e76798.zip
More paths to the libsigrokdecode Python scripts.
Diffstat (limited to 'decode.c')
-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;
}