o
    HiG                     @   s   d Z ddlZddlZdd Zdd ZedkrFe d Zg Zej	
erHeed	D ] Zd
ev r7eed
dZe ZeedkrEee q)dS dS dS )u   
统一配置文件
    Nc                  C   s   ddl m}  | d}t|ddd}| }|  tj|tjd}|d a	t
|d	 at
|d
 at
|d at
|d at
|d at
|d at
|d at
|d at
|d at  t
|d at
|d at
|d at
|d at
|d ad S )N   oc_utilzObjectiveC/oc_config.yamlrzutf-8)encoding)LoaderFilterProjectListFolderNotChangedListFolderIgnoreAllFilesKeepWordForFolder%DeletePrintOrAnnotationIgnoreFileListIgnoreFileListSupportModifyFileTypeUserCustomKeywordListNotExtractContentFileListUserArrowModifyKeywordListKeepWordForAllNeedChangeNotificationNameListSupportOpenFileTypeImageFolderSupportImageType) r   get_resource_pathopenreadcloseyamlload
FullLoaderlist_filter_projectlistlist_folder_not_changelist_folder_ignore_alllist_keep_word_for_folder#list_not_delete_print_or_annotationlist_file_not_changelist_support_file_type#list_user_custom_keyword_not_changelist_not_extract_content_filelist_user_arrow_change_keywordread_user_custom_white_listlist_keep_word"list_need_change_notification_namelist_support_open_file_typelist_image_folderlist_image_type)r   	yaml_pathfile_obj	file_datayaml_manager r4   4/data/storage/obfuscation/tool/ObjectiveC/oc_yaml.pyinit   s,   
r6   c                  C   sd   ddl m}  | d}tj|r.t|dD ]}d|v r$t|dd}|t	vr-t	
| qdS dS )u>    读取用户白名单添加到用户允许修改的列表中 r   r   z%user_custom_white_list_XXGPlayKit.txtr   
r   N)r   r   get_config_file_pathospathisfiler   strreplacer)   append)r   	file_pathliner4   r4   r5   r*   L   s   

r*   __main__z
/20000.txtr   r7   r      )__doc__r9   r   r6   r*   __name__getcwdr?   aListr:   r;   r   r@   r<   r=   striplenprintr4   r4   r4   r5   <module>   s$    F