summaryrefslogtreecommitdiffstats
path: root/PC/config.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-02-19 20:59:23 (GMT)
committerGuido van Rossum <guido@python.org>1998-02-19 20:59:23 (GMT)
commitf4aeb84bc63cecd91f0b3f5e190e33ea57d1c0c8 (patch)
tree724ed6fb6d108827a08b715bd81fc6fe05d461ff /PC/config.h
parent0cf0cfbaa9f02a10f344bdfcb3857f89cef90026 (diff)
downloadcpython-f4aeb84bc63cecd91f0b3f5e190e33ea57d1c0c8.zip
cpython-f4aeb84bc63cecd91f0b3f5e190e33ea57d1c0c8.tar.gz
cpython-f4aeb84bc63cecd91f0b3f5e190e33ea57d1c0c8.tar.bz2
Enable CHECK_IMPORT_CASE on Win32.
Diffstat (limited to 'PC/config.h')
-rw-r--r--PC/config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/PC/config.h b/PC/config.h
index 43ec3ec..5010cc0 100644
--- a/PC/config.h
+++ b/PC/config.h
@@ -195,6 +195,16 @@ typedef int pid_t;
#endif /* !MS_WIN16 */
#endif /* !MS_WIN32 */
+#ifdef MS_WIN32
+/* EXPERIMENTAL FEATURE: When CHECK_IMPORT_CASE is defined, check case of
+ imported modules against case of file; this causes "import String" to fail
+ with a NameError exception when it finds "string.py". Normally, you set
+ the environment variable PYTHONCASEOK (to anything) to disable this
+ feature; to permanently disable it, #undef it here. This only works on
+ case-preserving filesystems; otherwise you definitely want it off. */
+#define CHECK_IMPORT_CASE
+#endif
+
/* Fairly standard from here! */
/* Define if on AIX 3.