diff options
| author | Patrick Michaud <pmichaud@uw.edu> | 2014-03-22 16:52:05 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-03-22 16:54:02 +0100 |
| commit | 908bdea482d0a5af7a4c9d38ae52ed876d30cbe4 (patch) | |
| tree | f9d43cfde0df8c4a59c1e6a32a8cb0ebc95a0d33 /django | |
| parent | 07d4b3c8f28eb73bdbf2b1f61990daf01880e46b (diff) | |
[1.7.x] Fixed #22256 -- Replaced bad fallback for missing PATH
Thanks Baptiste Mispelon for the review.
Backport of acee46fc9 from master.
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/management/utils.py | 2 |
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 |
