]> granicus.if.org Git - python/commitdiff
Define DEBUG in a separate module to resolve circular references.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 11 Sep 2002 16:28:52 +0000 (16:28 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 11 Sep 2002 16:28:52 +0000 (16:28 +0000)
Lib/distutils/debug.py [new file with mode: 0644]

diff --git a/Lib/distutils/debug.py b/Lib/distutils/debug.py
new file mode 100644 (file)
index 0000000..7ca76d6
--- /dev/null
@@ -0,0 +1,6 @@
+import os
+
+# If DISTUTILS_DEBUG is anything other than the empty string, we run in
+# debug mode.
+DEBUG = os.environ.get('DISTUTILS_DEBUG')
+