g2ddlZddlmZddlmZdZdZdS)N)Path)CL_EDITION_FILE_FOR_USERScVttddS)zx Remove the file that contains the CloudLinux edition for end-user access. See CLOS-2411 for more info. T) missing_okN)rrunlinkpy/clconfigure/files.pyremove_cl_edition_filer s*  "##**d*;;;;;r cxtjddgtjtj5}|\}}|jdkr ddddS dddn #1swxYwYt t d5}||ddddS#1swxYwYdS)z8 Populate edition cache again with new edition. z/usr/bin/cldetectz--detect-edition)stdoutstderrrNwb) subprocessPopenPIPE communicate returncodeopenrwrite)procr _fs r update_cl_edition_filersY   01    $$&&  ?a     ' . .! s#$A,,A03A0 B//B36B3)rpathlibrclcommon.lib.constsrr rrr r rs_ 999999<<<r