Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Can you try this patch?
1. used "file -b" option to eliminate file path. Otherwide, re.split won't work because file path will contain space like this. (I hope -b option can be used anywhere "file" command exists) a b/python.exe: MS-DOS executable PE for MS Windows (console) Intel 80386 32-bit 2. used subprocess module instead of popen. subprocess is useful when argument contains space or quote like this issue. ---------- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file11342/platform.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3719> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com