Windows paths such as c:\... and/or those with spaces in them were
problematic.
/* FIXME: Check error code. */
/* FIXME: What happens if this function is called multiple times? */
PyRun_SimpleString("import sys;"
/* 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;
if (!(dir = opendir(DECODERS_DIR)))
return SIGROKDECODE_ERR_DECODERS_DIR;