Merge pull request #525 from MitchWeaver/master

add OpenBSD support
This commit is contained in:
Steven Black 2018-03-03 17:05:50 -05:00 committed by GitHub
commit 2f90ec066f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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