Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 115fdc6

Browse files
committed
Define DEBUG as early as possible to avoid import problems.
1 parent 4f2f133 commit 115fdc6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lib/distutils/core.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313
import sys, os
1414
from types import *
15+
16+
# If DISTUTILS_DEBUG is anything other than the empty string, we run in
17+
# debug mode.
18+
DEBUG = os.environ.get('DISTUTILS_DEBUG')
19+
1520
from distutils.errors import *
1621
from distutils.util import grok_environment_error
1722

@@ -32,11 +37,6 @@
3237
or: %(script)s cmd --help
3338
"""
3439

35-
36-
# If DISTUTILS_DEBUG is anything other than the empty string, we run in
37-
# debug mode.
38-
DEBUG = os.environ.get('DISTUTILS_DEBUG')
39-
4040
def gen_usage (script_name):
4141
script = os.path.basename(script_name)
4242
return USAGE % vars()

0 commit comments

Comments
 (0)