X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=decode.c;h=de37913cddf9bd13d0f7be8e754b34bb473a5827;hb=d0f3d67746c89ee19f4c7a8d6f8858afd54347de;hp=bc4b531040188b4df69e1cf4c2789df6739ce286;hpb=1c6fa20f549c0565ce4fae6ddf7d5eb60db2ddea;p=libsigrokdecode.git diff --git a/decode.c b/decode.c index bc4b531..de37913 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; } @@ -45,6 +50,9 @@ int sigrokdecode_init(void) */ int sigrokdecode_load_decoder_file(const char *name) { + /* QUICK HACK */ + name = name; + /* TODO */ return 0; }