Pass $HOME and $PATH through to scripts in modules/scripts.py
This commit is contained in:
parent
02c3a5c336
commit
af39136f83
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,11 @@ class Module(object):
|
|||
event["stdout"].write("Reloaded all scripts")
|
||||
|
||||
def call(self, event, filename, name):
|
||||
env = {}
|
||||
env = {
|
||||
"HOME": os.environ["HOME"],
|
||||
"PATH": os.environ["PATH"]
|
||||
}
|
||||
|
||||
env["EVENT"] = event.name
|
||||
for key, value in event.kwargs.items():
|
||||
if isinstance(value, (str,)):
|
||||
|
|
Loading…
Reference in a new issue