summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2011-01-15 04:26:07 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2011-01-15 12:46:17 +0100
commit104260684195431f4023acad96ba37787a14a6ab (patch)
tree31fb423fb50336c8ccbebccd6873a8b7eeda5d57
parent0895f56aa091fabc4761862f43020b53396ed9d5 (diff)
downloadlibsigrokdecode-104260684195431f4023acad96ba37787a14a6ab.tar.gz
libsigrokdecode-104260684195431f4023acad96ba37787a14a6ab.zip
libsigrokdecode fix to handle unusual dirnames.
Windows paths such as c:\... and/or those with spaces in them were problematic.
-rw-r--r--decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decode.c b/decode.c
index 2cae1db..da8624a 100644
--- a/decode.c
+++ b/decode.c
@@ -51,7 +51,7 @@ int sigrokdecode_init(void)
/* FIXME: Check error code. */
/* FIXME: What happens if this function is called multiple times? */
PyRun_SimpleString("import sys;"
- "sys.path.append('" DECODERS_DIR "');");
+ "sys.path.append(r'" DECODERS_DIR "');");
if (!(dir = opendir(DECODERS_DIR)))
return SIGROKDECODE_ERR_DECODERS_DIR;