]> sigrok.org Git - libsigrokdecode.git/commitdiff
More paths to the libsigrokdecode Python scripts.
authorUwe Hermann <redacted>
Tue, 6 Apr 2010 00:11:01 +0000 (02:11 +0200)
committerUwe Hermann <redacted>
Tue, 6 Apr 2010 00:11:01 +0000 (02:11 +0200)
decode.c

index 7bbcff336bf8badf353a392d258a8fc7e1a8bb23..b57dff504c56851a81bf8e7a994ae6d054b6fcd7 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;
 }