File: //opt/alt/python37/lib/python3.7/site-packages/clconfigure/__pycache__/files.cpython-37.pyc
B
���Ҹ;�� @ s4 d dl Z d dlmZ d dlmZ dd� Zdd� ZdS )� N)�Path)�CL_EDITION_FILE_FOR_USERSc C s t t�jdd� dS )zx
Remove the file that contains the CloudLinux edition
for end-user access.
See CLOS-2411 for more info.
T)Z
missing_okN)r r �unlink� r r �py/clconfigure/files.py�remove_cl_edition_file s r c C sV t jddgt jt jd�} | �� \}}| jdkr2dS ttd��}|�|� W dQ R X dS )z8
Populate edition cache again with new edition.
z/usr/bin/cldetectz--detect-edition)�stdout�stderrr N�wb)�
subprocess�Popen�PIPEZcommunicate�
returncode�openr �write)�pr r �fr r r �update_cl_edition_file s
r )r Zpathlibr Zclcommon.lib.constsr r r r r r r �<module> s