From 104260684195431f4023acad96ba37787a14a6ab Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 15 Jan 2011 04:26:07 +0100 Subject: [PATCH] libsigrokdecode fix to handle unusual dirnames. Windows paths such as c:\... and/or those with spaces in them were problematic. --- decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2