Libraries upgrade:
[blender.git] / po / update_po.py
index 45738363966c36dbea366ec9de6f8a9a9dfe5951..0aab8c756468b99f5ee061e373ae3dea1461e176 100755 (executable)
@@ -1,6 +1,5 @@
 #!/usr/bin/env python
 
-# $Id$
 # ***** BEGIN GPL LICENSE BLOCK *****
 #
 # This program is free software; you can redistribute it and/or
@@ -27,7 +26,8 @@ import subprocess
 import os
 import sys
 
-CURRENT_DIR = os.path.dirname(__file__)
+GETTEXT_MSGMERGE_EXECUTABLE = "msgmerge"
+CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
 DOMAIN = "blender"
 
 
@@ -35,8 +35,9 @@ def process_po(po):
     lang = os.path.basename(po)[:-3]
 
     # update po file
-    cmd = ("msgmerge",
+    cmd = (GETTEXT_MSGMERGE_EXECUTABLE,
            "--update",
+           "--backup=none",
            "--lang=%s" % lang,
            os.path.join(CURRENT_DIR, "%s.po" % lang),
            os.path.join(CURRENT_DIR, "%s.pot" % DOMAIN),