From 560b9e638dda9f9c0786ce7bc21515a1e2b1a240 Mon Sep 17 00:00:00 2001 From: khalim19 Date: Mon, 10 Nov 2014 23:36:53 +0100 Subject: [PATCH] make_package: Fix .pot file generation for real --- resources/make_package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/make_package.py b/resources/make_package.py index 1ab3388f..3f094c3f 100644 --- a/resources/make_package.py +++ b/resources/make_package.py @@ -194,6 +194,8 @@ def _generate_pot_file(source_dir, version): subprocess.call(["./generate_pot.sh", version]) os.chdir(orig_cwd) + _generate_pot_file(constants.LOCALE_PATH, version) + files = _get_filtered_files(input_directory) files_relative_paths = [file_[len(input_directory) + 1:] for file_ in files] @@ -202,8 +204,6 @@ def _generate_pot_file(source_dir, version): if filename in FILENAMES_TO_RENAME: files_relative_paths[i] = os.path.join(os.path.dirname(rel_file_path), FILENAMES_TO_RENAME[filename]) - _generate_pot_file(constants.LOCALE_PATH, version) - temp_dir = tempfile.mkdtemp() temp_files = [os.path.join(temp_dir, file_rel_path) for file_rel_path in files_relative_paths]