Commit 115fdc61 authored by Jeremy Hylton's avatar Jeremy Hylton

Define DEBUG as early as possible to avoid import problems.

parent 4f2f1335
......@@ -12,6 +12,11 @@ __revision__ = "$Id$"
import sys, os
from types import *
# If DISTUTILS_DEBUG is anything other than the empty string, we run in
# debug mode.
DEBUG = os.environ.get('DISTUTILS_DEBUG')
from distutils.errors import *
from distutils.util import grok_environment_error
......@@ -32,11 +37,6 @@ usage: %(script)s [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: %(script)s cmd --help
"""
# If DISTUTILS_DEBUG is anything other than the empty string, we run in
# debug mode.
DEBUG = os.environ.get('DISTUTILS_DEBUG')
def gen_usage (script_name):
script = os.path.basename(script_name)
return USAGE % vars()
......
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