3 9Pe@sTddlZejdkr"ddlZddlZd ddZddZdZejdkrHd Zned ZdS) Nntc Cs tjdkrtjjd|Stj}d}tj}d}d}ytj||d|}Wnd}YnX|sd}|tj B}ytj||d|}Wnd}YnX|sd}|tj B}ytj||d|}Wnd}YnX|rytj |d\}} Wnd}YnXtj ||rtjj||Stjjtj |S)Nrz/usrzSoftware\ISC\BINDTrFZ InstallDir)osnamepathjoinwin32conHKEY_LOCAL_MACHINEZKEY_READwin32apiZ RegOpenKeyExZKEY_WOW64_64KEYZKEY_WOW64_32KEYZRegQueryValueExZ RegCloseKeyZGetSystemDirectory) ZbindirZhklmZ bind_subkeyZsamZh_keyZ key_foundZsam64Zsam32Z named_base_r /usr/lib/python3.6/utils.pyprefixsD        rcCs2tjdkrd|jdddSd|jdddS)Nr"z"\"'z'\'')rrreplace)sr r r shellquote=s rz 9.11.36-RedHat-9.11.36-8.el8_8.2z/etcZetc)r)rrrr rrversionZ sysconfdirr r r r  s  )