Skip to content

Commit

Permalink
translations: skip build folders in translation-update script
Browse files Browse the repository at this point in the history
  • Loading branch information
smathot committed Jun 30, 2016
1 parent 681ca48 commit dbb35cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion update-translation.py
Expand Up @@ -25,6 +25,8 @@
import subprocess
import argparse

EXCLUDE_FOLDERS = [u'build', u'dist', 'deb_dist']

pro_tmpl = u'''CODECFORTR = UTF-8
FORMS = %(ui_list)s
SOURCES = translatables-tmp.py
Expand Down Expand Up @@ -129,7 +131,8 @@ def parse_folder(path, t, ui_list, category):
if fname.endswith(u'.ui'):
ui_list.append(_fname)
continue
if os.path.isdir(_fname):
if os.path.isdir(_fname) and \
os.path.basename(_fname) not in EXCLUDE_FOLDERS:
parse_folder(_fname, t, ui_list, category)


Expand Down

0 comments on commit dbb35cd

Please sign in to comment.