From: Stefan Kögl Date: Sun, 30 Mar 2014 11:18:40 +0000 (+0200) Subject: fix paths in generate_commits.py X-Git-Url: https://repo.or.cz/w/mygpo.git/commitdiff_plain/fb0ac942b69c5c6a47ffbc050f29a2f3079bd7d8 fix paths in generate_commits.py --- diff --git a/tools/i18n/generate_commits.py b/tools/i18n/generate_commits.py index ac86a03c..3268fad3 100755 --- a/tools/i18n/generate_commits.py +++ b/tools/i18n/generate_commits.py @@ -13,7 +13,7 @@ import os.path filenames = [] pofiles = os.path.join(os.path.dirname(os.path.abspath(__file__)), - '..', '..', 'mygpo', 'locale', '*', 'LC_MESSAGES', 'django.po') + '..', '..', '..', 'mygpo', 'locale', '*', 'LC_MESSAGES', 'django.po') process = subprocess.Popen(['git', 'status', '--porcelain'] + glob.glob(pofiles), stdout=subprocess.PIPE) @@ -28,7 +28,7 @@ for filename in filenames: translators = [] language = None - filename = os.path.join('..', filename) + filename = os.path.join('..', '..', filename) for line in open(filename).read().splitlines(): if line.startswith('# Translators:'): in_translators = True