X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decode.c;h=b57dff504c56851a81bf8e7a994ae6d054b6fcd7;hp=bc4b531040188b4df69e1cf4c2789df6739ce286;hb=3a72d2b31f43788996777b11bff672c0c0e76798;hpb=1c6fa20f549c0565ce4fae6ddf7d5eb60db2ddea diff --git a/decode.c b/decode.c index bc4b531..b57dff5 100644 --- a/decode.c +++ b/decode.c @@ -32,7 +32,12 @@ int sigrokdecode_init(void) Py_Initialize(); /* FIXME */ - PySys_SetPath("decode/scripts"); + /* 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; }