X7ROOT File Manager
Current Path:
/opt/cloudlinux/venv/lib/python3.11/site-packages/pyvirtualdisplay
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pyvirtualdisplay
/
??
..
??
__init__.py
(241 B)
??
__pycache__
??
about.py
(20 B)
??
abstractdisplay.py
(12.29 KB)
??
display.py
(3.18 KB)
??
examples
??
py.typed
(0 B)
??
smartdisplay.py
(2.6 KB)
??
util.py
(486 B)
??
xauth.py
(1.14 KB)
??
xephyr.py
(1.6 KB)
??
xvfb.py
(1.9 KB)
??
xvnc.py
(1.87 KB)
Editing: util.py
import subprocess import sys def get_helptext(program): cmd = [program, "-help"] # py3.7+ # p = subprocess.run(cmd, capture_output=True) # stderr = p.stderr # py3.6 also p = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=False, ) _, stderr = p.communicate() helptext = stderr.decode("utf-8", "ignore") return helptext def platform_is_osx(): return sys.platform == "darwin"
Upload File
Create Folder