summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorPatrick Michaud <pmichaud@uw.edu>2014-03-22 16:52:05 +0100
committerClaude Paroz <claude@2xlibre.net>2014-03-22 16:52:05 +0100
commitacee46fc950153c1c411f779b20f66141eb0d245 (patch)
tree461a11a73195a533a6101e06c6d02854c2ff85b9 /django
parentbc315266c86f371ab04d05c43383775267e8595a (diff)
Fixed #22256 -- Replaced bad fallback for missing PATH
Thanks Baptiste Mispelon for the review.
Diffstat (limited to 'django')
-rw-r--r--django/core/management/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/utils.py b/django/core/management/utils.py
index 3a3badc93f..92d0964296 100644
--- a/django/core/management/utils.py
+++ b/django/core/management/utils.py
@@ -57,7 +57,7 @@ def handle_extensions(extensions=('html',), ignored=('py',)):
def find_command(cmd, path=None, pathext=None):
if path is None:
- path = os.environ.get('PATH', []).split(os.pathsep)
+ path = os.environ.get('PATH', '').split(os.pathsep)
if isinstance(path, six.string_types):
path = [path]
# check if there are funny path extensions for executables, e.g. Windows