/*﹫ 2 d dl Z d dlmZ d dlmZ d Zd ZdS ) N)Path)CL_EDITION_FILE_FOR_USERSc V t t d dS )zx
Remove the file that contains the CloudLinux edition
for end-user access.
See CLOS-2411 for more info.
T)
missing_okN)r r unlink py/clconfigure/files.pyremove_cl_edition_filer s* "##**d*;;;;;r c x t j ddgt j t j 5 } | \ }}| j dk r ddd dS ddd n# 1 swxY w Y t t d 5 }| | ddd dS # 1 swxY w Y dS )z8
Populate edition cache again with new edition.
z/usr/bin/cldetectz--detect-edition)stdoutstderrr Nwb)
subprocessPopenPIPEcommunicate
returncodeopenr write)procr
_fs r
update_cl_edition_filer sY
01
$$&& ?a
' . . ! s# $A,,A03A0B//B36B3)r pathlibr clcommon.lib.constsr r r r r r