diff options
author | Lawrence D'Oliveiro <from-blender@geek-central.gen.nz> | 2014-04-28 17:07:45 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-04-29 16:03:08 +0400 |
commit | ef3eb7adc6f283145e28781a05b3b5e73a6cf083 (patch) | |
tree | 048a2471113205b3b4cccab64c64139bae989726 /intern/locale | |
parent | 7544961ea5177b61b8f1f07e156cac28afe29764 (diff) |
Code cleanup: don't use unnecessary .exe extension in scons, simplify code.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D236
Diffstat (limited to 'intern/locale')
-rw-r--r-- | intern/locale/SConscript | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/intern/locale/SConscript b/intern/locale/SConscript index 4136ac8237d..24828c120ec 100644 --- a/intern/locale/SConscript +++ b/intern/locale/SConscript @@ -66,10 +66,6 @@ if env['WITH_BF_INTERNATIONAL']: locale = env.Clone() - msgfmt_executable = targetpath - if env['OURPLATFORM'] in ('win32-vc', 'win64-vc', 'win32-mingw', 'win64-mingw'): - msgfmt_executable += ".exe" - # dependencies dependencies = [msgfmt_target] @@ -82,7 +78,7 @@ if env['WITH_BF_INTERNATIONAL']: po_file = os.path.join(po_dir, f) mo_file = os.path.join(build_dir, os.path.splitext(f)[0] + ".mo") - command = "\"%s\" \"%s\" \"%s\"" % (msgfmt_executable, po_file, mo_file) + command = "\"%s\" \"%s\" \"%s\"" % (targetpath, po_file, mo_file) locale.Command(mo_file, po_file, command) locale.Depends(mo_file, dependencies) |