add OpenBSD support

This commit is contained in:
Mitch Weaver 2018-03-03 22:55:18 +01:00
parent cf130d092c
commit 1ff8f4b13d

View File

@ -38,6 +38,9 @@ else: # Python 2
raw_input = raw_input # noqa
# Syntactic sugar for "sudo" command in UNIX / Linux
if platform.system() == "OpenBSD":
SUDO = ["/usr/bin/doas"]
else:
SUDO = ["/usr/bin/env", "sudo"]