.. | |||||
__pycache__ | |||||
examples | |||||
__init__.py | |||||
about.py | |||||
abstractdisplay.py | |||||
display.py | |||||
py.typed | |||||
smartdisplay.py | |||||
util.py | |||||
xauth.py | |||||
xephyr.py | |||||
xvfb.py | |||||
xvnc.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"
.. | |||||
__pycache__ | |||||
examples | |||||
__init__.py | |||||
about.py | |||||
abstractdisplay.py | |||||
display.py | |||||
py.typed | |||||
smartdisplay.py | |||||
util.py | |||||
xauth.py | |||||
xephyr.py | |||||
xvfb.py | |||||
xvnc.py |