windows trouble

This commit is contained in:
vsc
2017-06-08 22:16:52 +01:00
parent f1ddb5822e
commit ebd6f0a0c2
9 changed files with 29 additions and 12 deletions

View File

@@ -25,8 +25,13 @@ VFS_t pystream;
static void *
py_open( const char *name, const char *io_mode) {
#if HAVE_STRCASESTR
if (strcasestr(name,"//python/")== name)
name += strlen("//python/");
#else
if (strstr(name,"//python/")== name)
name += strlen("//python/");
#endif
// we assume object is already open, so there is no need to open it.
PyObject *stream = string_to_python( name, true, NULL);
if (stream == Py_None)