On this page
libtmux.common.get_version
- Module
- libtmux.common
- Package
- libtmux
- Source
- src/libtmux/common.py
- get_version ( tmux_bin : str | None = None ) LooseVersion
-
Return tmux version.
If tmux is built from git master, the version returned will be the latest version appended with -master, e.g.
2.4-master.If using OpenBSD's base system tmux, the version will have
-openbsdappended to the latest version, e.g.2.4-openbsd.- Parameters
-
-
tmux_bin ( str | None ) – Path to tmux binary. If *None*, uses the system tmux from
shutil.which.
-
- Returns
-
distutils.version.LooseVersiontmux version according to *tmux_bin* if provided, otherwise the system tmux fromshutil.which
0 declared, 0 inherited