changes to relative path option
[blender.git] / po / update_po.py
index 45738363966c36dbea366ec9de6f8a9a9dfe5951..3dcaa9d8f1b7a4096942dfd84b750dabcb368ba3 100755 (executable)
@@ -27,7 +27,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 +36,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),