]> sigrok.org Git - libsigrokdecode.git/blobdiff - decode.c
Fix all warnings and re-enable -Wextra.
[libsigrokdecode.git] / decode.c
index 7bbcff336bf8badf353a392d258a8fc7e1a8bb23..de37913cddf9bd13d0f7be8e754b34bb473a5827 100644 (file)
--- 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;
 }
@@ -45,6 +50,9 @@ int sigrokdecode_init(void)
  */
 int sigrokdecode_load_decoder_file(const char *name)
 {
+       /* QUICK HACK */
+       name = name;
+
        /* TODO */
        return 0;
 }