]> glassweightruler.freedombox.rocks Git - waydroid.git/blob - tools/helpers/version.py
Allow running a shell command as an arbitrary user and group and with an arbitrary...
[waydroid.git] / tools / helpers / version.py
1 import os
2 import re
3
4 def versiontuple(v):
5 return tuple(map(int, (v.split("."))))
6
7 def kernel_version():
8 return tuple(map(int, re.match(r"(\d+)\.(\d+)", os.uname().release).groups()))