blob: 363219334b32cbf497269c8c0b91274a11abbb66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import sudo
import sys
sys.path = []
class ConflictPlugin(sudo.Plugin):
def __init__(self, plugin_options, **kwargs):
sudo.log_info("PATH before: {} (should be empty)".format(sys.path))
sys.path = [sudo.options_as_dict(plugin_options).get("Path")]
sudo.log_info("PATH set: {}".format(sys.path))
|