summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-25 03:26:37 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-25 03:26:37 +0000
commit05e8c3ecd3a01ce0574040857a02bac04097b36f (patch)
tree73ce4467677a290291f2128405175ff872f7a34a
parentd535edb9da92f7de0c2ae35456b5b751db8e4d46 (diff)
Fixed #8491 -- Allow settings.LOCALE_PATH to be any sequence, not just a tuple.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/management/commands/compilemessages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/management/commands/compilemessages.py b/django/core/management/commands/compilemessages.py
index f0975ca6c1..d1f1647f8b 100644
--- a/django/core/management/commands/compilemessages.py
+++ b/django/core/management/commands/compilemessages.py
@@ -9,10 +9,10 @@ except NameError:
from sets import Set as set # For Python 2.3
def compile_messages(locale=None):
- basedirs = (os.path.join('conf', 'locale'), 'locale')
+ basedirs = [os.path.join('conf', 'locale'), 'locale']
if os.environ.get('DJANGO_SETTINGS_MODULE'):
from django.conf import settings
- basedirs += settings.LOCALE_PATHS
+ basedirs.extend(settings.LOCALE_PATHS)
# Gather existing directories.
basedirs = set(map(os.path.abspath, filter(os.path.isdir, basedirs)))