1919except AttributeError :
2020 tree_categorize = False
2121
22- ida_idaapi .require ("pci_utils " )
23- ida_idaapi .require ("pci_config " )
24- ida_idaapi .require ("lib_classes_checker " )
22+ ida_idaapi .require ("pyclassinformer " )
23+ ida_idaapi .require ("pyclassinformer.pci_utils " )
24+ ida_idaapi .require ("pyclassinformer.pci_config " )
2525if tree_categorize :
26- ida_idaapi .require ("mc_tree" )
27- ida_idaapi .require ("dirtree_utils" )
26+ ida_idaapi .require ("pyclassinformer. mc_tree" )
27+ ida_idaapi .require ("pyclassinformer. dirtree_utils" )
2828
2929def change_dir_of_ctors_dtors (paths , data , dirtree ):
3030 path_prefix = "/classes/"
@@ -48,7 +48,7 @@ def change_dir_of_ctors_dtors(paths, data, dirtree):
4848 func_path = "/" + func_name
4949
5050 # get the func path in the dir tree.
51- dirtree_path = dirtree_utils .get_abs_path_by_inode (dirtree , f .start_ea )
51+ dirtree_path = pyclassinformer . dirtree_utils .get_abs_path_by_inode (dirtree , f .start_ea )
5252
5353 # check if the function is at the top level or not.
5454 # and rename it.
@@ -90,7 +90,7 @@ def change_dir_of_vfuncs(paths, data, dirtree):
9090 func_path = "/" + func_name
9191
9292 # get the func path in the dir tree.
93- dirtree_path = dirtree_utils .get_abs_path_by_inode (dirtree , vfea )
93+ dirtree_path = pyclassinformer . dirtree_utils .get_abs_path_by_inode (dirtree , vfea )
9494
9595 # check if the function is at the top level or not.
9696 # and rename it.
@@ -179,7 +179,7 @@ def get_base_classes(data):
179179 col = data [vftable_ea ]
180180
181181 # get relevant BCDs mainly for multiple inheritance
182- base_classes = pci_utils .utils .get_mdisp_bases (col , data )
182+ base_classes = pyclassinformer . pci_utils .utils .get_mdisp_bases (col , data )
183183
184184 # reverse the path because the path is reverse ordered.
185185 base_classes .reverse ()
@@ -191,7 +191,7 @@ def get_base_classes(data):
191191
192192def method_classifier (data , config = None , icon = - 1 ):
193193 if config is None :
194- config = pci_config .pci_confg ()
194+ config = pyclassinformer . pci_config .pci_confg ()
195195
196196 # check config values to execute or not
197197 if not config .exana and not config .mvvm and not config .mvcd and not config .rnvm and not config .rncd :
@@ -220,7 +220,7 @@ def method_classifier(data, config=None, icon=-1):
220220
221221 # display dir tree
222222 if config .exana :
223- tree = mc_tree .show_mc_tree_t (data , paths , icon = icon )
223+ tree = pyclassinformer . mc_tree .show_mc_tree_t (data , paths , icon = icon )
224224 else :
225225 print ("Warning; Your IDA does not have ida_dirtree or find_entry in dirtree_t. Skip creating dirs for classes and moving functions into them." )
226226
0 commit comments