def _get_po_paths(locales=[]):
basedirs = [os.path.join('<STR_LIT>', '<STR_LIT>'), '<STR_LIT>']<EOL>if os.environ.get('<STR_LIT>'):<EOL><INDENT>from django.conf import settings<EOL>basedirs.extend(settings.LOCALE_PATHS)<EOL><DEDENT>basedirs = set(map(os.path.abspath, filter(os.path.isdir, basedirs)))<EOL>if not basedirs:<EOL><INDENT>raise CommandError("<STR_LIT>")<EOL><DEDENT>po_paths = []<EOL>for basedir in basedirs:<EOL><INDENT>for locale in locales:<EOL><INDENT>basedir_locale = os.path.join(basedir, locale, '<STR_LIT>')<EOL>for dirpath, dirnames, filenames in os.walk(basedir_locale):<EOL><INDENT>for f in filenames:<EOL><INDENT>if f.endswith('<STR_LIT>'):<EOL><INDENT>po_paths.append(os.path.join(dirpath, f))<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>return po_paths<EOL>
Returns paths to all relevant po files in the current project.