fix missing sys and conf error in pyruse-boot

master
Yves G 2018-02-08 14:30:45 +01:00
parent 901da5a367
commit 50a4be71f0
2 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
#!/usr/bin/python
import sys
from pyruse import main
main.boot(sys.argv[1])

View File

@ -34,6 +34,8 @@ def _doForEachJournalEntry(workflow):
step = step.run(entry)
def boot(modName):
_setPyrusePaths()
conf = config.Config(PYRUSE_PATHS)
if "action_" in modName:
module.get({"action": modName}).module.boot()
elif "filter_" in modName: