mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Small patches to the DJGPP version of check_case().
This commit is contained in:
parent
9caa110141
commit
aeca79b0f6
1 changed files with 3 additions and 1 deletions
|
@ -1006,6 +1006,8 @@ check_case(char *buf, int len, int namelen, char *name)
|
||||||
#endif /* macintosh */
|
#endif /* macintosh */
|
||||||
|
|
||||||
#ifdef DJGPP
|
#ifdef DJGPP
|
||||||
|
#include <dir.h>
|
||||||
|
|
||||||
static int
|
static int
|
||||||
check_case(char *buf, int len, int namelen, char *name)
|
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)
|
if (getenv("PYTHONCASEOK") != NULL)
|
||||||
return 1;
|
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) {
|
if (done) {
|
||||||
PyErr_Format(PyExc_NameError,
|
PyErr_Format(PyExc_NameError,
|
||||||
"Can't find file for module %.100s\n(filename %.300s)",
|
"Can't find file for module %.100s\n(filename %.300s)",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue