]> granicus.if.org Git - python/commitdiff
Enable CHECK_IMPORT_CASE on Win32.
authorGuido van Rossum <guido@python.org>
Thu, 19 Feb 1998 20:59:23 +0000 (20:59 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 19 Feb 1998 20:59:23 +0000 (20:59 +0000)
PC/config.h

index 43ec3ecb523f7cd7be70c0cedcfce66700cf1a6b..5010cc01df041def0f30577c376176410b13058b 100644 (file)
@@ -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.