diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2011-01-15 04:26:07 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-01-15 12:46:17 +0100 |
commit | 104260684195431f4023acad96ba37787a14a6ab (patch) | |
tree | 31fb423fb50336c8ccbebccd6873a8b7eeda5d57 | |
parent | 0895f56aa091fabc4761862f43020b53396ed9d5 (diff) | |
download | libsigrokdecode-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |