3
0Q=j ã @ s4 d dl Z d dlmZmZ dd„ Zdd„ Zdd„ ZdS ) é N)ÚPIPEÚPopenc C sf t jjdƒstdƒ‚d} t| dttd�}dd„ |jƒ D ƒ\}}|rPtd|› �ƒ‚t|d d… jd
ƒƒS )zŽ
Get user count using the common CloudLinux library.
This number is more accurate for systems
with a control panel installed.
z/opt/cloudlinux/venv/binz(CloudLinux virtual environment not foundzZ/opt/cloudlinux/venv/bin/python3 -c "from clcommon.cpapi import cpusers; print(cpusers())"T)ÚshellÚstdoutÚstderrc S s g | ]}|j ƒ jƒ ‘qS © )ÚdecodeÚstrip)Ú.0Úresultr r ú /usr/lib/python3.6/statistics.pyú