From: Uwe Hermann Date: Tue, 6 Apr 2010 00:11:01 +0000 (+0200) Subject: More paths to the libsigrokdecode Python scripts. X-Git-Tag: libsigrokdecode-0.1.0~346 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3a72d2b31f43788996777b11bff672c0c0e76798;p=libsigrokdecode.git More paths to the libsigrokdecode Python scripts. --- 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; }