From: Uwe Hermann Date: Sat, 15 Jan 2011 03:26:07 +0000 (+0100) Subject: libsigrokdecode fix to handle unusual dirnames. X-Git-Tag: libsigrokdecode-0.1.0~312 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=104260684195431f4023acad96ba37787a14a6ab libsigrokdecode fix to handle unusual dirnames. Windows paths such as c:\... and/or those with spaces in them were problematic. --- 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;