mirror of
https://github.com/python/cpython.git
synced 2026-01-04 06:22:20 +00:00
Define DEBUG as early as possible to avoid import problems.
This commit is contained in:
parent
4f2f1335a8
commit
115fdc614f
1 changed files with 5 additions and 5 deletions
|
|
@ -12,6 +12,11 @@
|
|||
|
||||
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 @@
|
|||
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue