2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

plugins/python/plugin_common: add a default search path for python plugins

If the ModulePath is relative, assume it is under
"/usr/local/libexec/sudo/python" or wherever the sudo plugins are in a
"python" subdirectory.
This commit is contained in:
Robert Manner
2020-02-26 15:51:30 +01:00
committed by Todd C. Miller
parent 34972e834f
commit 5c96b4407d
4 changed files with 37 additions and 14 deletions

View File

@@ -153,6 +153,8 @@ The plugin arguments are as follows:
.Bl -tag -width 4n
.It ModulePath
The path of a python file which contains the class of the sudo Python plugin.
It must be either an absolute path or a path relative to the sudo Python plugin
directory: "@plugindir@/python".
.It ClassName
The name of the class implementing the sudo Python plugin.
.El