2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-23 18:37:49 +00:00
sudo/plugins/python/regress/plugin_conflict.py

12 lines
326 B
Python
Raw Normal View History

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))