making PO/POT/... update scripts py3.2 compatible + making it almost win compatible
[blender.git] / po / update_msg.py
index 7bb659ca93cc7889bfbecd0c48e916f8deb1f559..fc3e26b198017cda04d4665cbe7c52d06bb0f1a8 100644 (file)
@@ -26,7 +26,7 @@
 
 import os
 
-CURRENT_DIR = os.path.dirname(__file__)
+CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
 SOURCE_DIR = os.path.normpath(os.path.abspath(os.path.join(CURRENT_DIR, "..")))
 
 FILE_NAME_MESSAGES = os.path.join(CURRENT_DIR, "messages.txt")
@@ -80,7 +80,7 @@ def dump_messages_rna(messages):
     for cls in bpy.types.Operator.__subclasses__():
         walkClass(cls)
 
-    from bl_ui.space_userpref_keymap import KM_HIERARCHY
+    from bpy_extras.keyconfig_utils import KM_HIERARCHY
 
     walk_keymap_hierarchy(KM_HIERARCHY)