Kaydet (Commit) aeca79b0 authored tarafından Guido van Rossum's avatar Guido van Rossum

Small patches to the DJGPP version of check_case().

üst 9caa1101
......@@ -1006,6 +1006,8 @@ check_case(char *buf, int len, int namelen, char *name)
#endif /* macintosh */
#ifdef DJGPP
#include <dir.h>
static int
check_case(char *buf, int len, int namelen, char *name)
{
......@@ -1014,7 +1016,7 @@ check_case(char *buf, int len, int namelen, char *name)
if (getenv("PYTHONCASEOK") != NULL)
return 1;
done = findfirst(buf, &ffblk, FA_ARCH|FA_RDONLY|FA_HIDDEN);
done = findfirst(buf, &ffblk, FA_ARCH|FA_RDONLY|FA_HIDDEN|FA_DIREC);
if (done) {
PyErr_Format(PyExc_NameError,
"Can't find file for module %.100s\n(filename %.300s)",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment