replace python3 command with python3.2, python3 isnt available on ubuntu.
[blender-staging.git] / source / blender / makesrna / rna_cleanup / rna_cleaner_merge.py
index 90b8f021d01fc80b6190d7a8a214dba055fb626d..758511059915c6cf3627f207dc6ad2fa1575093c 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3.1
+#!/usr/bin/env python3.2
 
 import sys
 
@@ -27,17 +27,16 @@ def main():
        
        for key, val_orig in mod_to_dict.items():
                try:
-                       val = mod_from_dict.pop(key)
+                       val_new = mod_from_dict.pop(key)
                except:
                        # print("not found", key)
-                       val = val_orig
+                       val_new = val_orig
                        
                # always take the class from the base
-               val = list(val)
-               val[2] = val_orig[2]
-               print(val_orig[2])
+               val = list(val_orig)
+               val[0] = val_new[0] # comment
+               val[4] = val_new[4] # -> to
                val = tuple(val)
-
                rna_api_new.append(val)
        
        def write_work_file(file_path, rna_api):