From 3a72d2b31f43788996777b11bff672c0c0e76798 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 6 Apr 2010 02:11:01 +0200 Subject: More paths to the libsigrokdecode Python scripts. --- decode.c | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- cgit v1.2.3-70-g09d2