Merge "extract_messages: Specify input directory" into stable/pike

This commit is contained in:
Zuul 2018-02-05 05:03:02 +00:00 committed by Gerrit Code Review
commit e855fb0668
1 changed files with 3 additions and 2 deletions

View File

@ -39,13 +39,14 @@ class Command(BaseCommand):
def handle(self, *args, **options):
cmd = ('python setup.py {quiet} extract_messages '
'-F babel-{domain}.cfg '
'-o {module}/locale/{domain}.pot')
'--input-dirs {module} '
'-o {potfile}')
distribution = Distribution()
distribution.parse_config_files(distribution.find_config_files())
quiet = '-q' if int(options['verbosity']) == 0 else ''
if options['check_only']:
cmd += " ; rm {module}/locale/{domain}.pot"
cmd += " ; rm {potfile}"
for module in options['module']:
for domain in options['domain']: