Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I think this is stat(2) problem on windows. Please try following test program.
#include <stdio.h> #include <sys/stat.h> #include <windows.h> void test(const char *path) { struct stat st; printf("%s %d %d\n", path, stat(path, &st), GetFileAttributes(path)); } int main() { test("e:\\shared"); test("e:\\shared\\"); /* issue1293 */ test("e:\\shared\\a.py"); test("\\\\whiterab-c2znlh\\shared"); /* this issue */ test("\\\\whiterab-c2znlh\\shared\\"); test("\\\\whiterab-c2znlh\\shared\\a.py"); } And this is result. e:\shared 0 16 e:\shared\ -1 16 e:\shared\a.py 0 32 \\whiterab-c2znlh\shared -1 16 \\whiterab-c2znlh\shared\ 0 16 \\whiterab-c2znlh\shared\a.py 0 32 As discussed in issue1293, stat(2) fails for the normal folder path with trailing slash, and also fails for the UNC folder path without trailing slash. I'm using VC6, but same behavior on VC9? trunk/Python/import.c(3160) and trunk/Modules/zipimport.c(99) is using stat(2). I'll create patch to prove my observation. :-) ---------- nosy: +ocean-city _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3677> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com