Skip to content
Snippets Groups Projects
Commit 7dd154ea authored by Jan Mach's avatar Jan Mach
Browse files

Fix: Controlling script was not able to detect Python scripts launched without full path.

parent 06b99623
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ class MentatControllerScript(pyzenkit.zenscript.ZenScript):
"""
Analyze given process (detected via ps utility).
"""
m = re.match('([^\s]+(?:perl|python3))\s+(?:-T\s+)?[^\s]+(mentat-[^\s]+)(?:\s+(.*))?', cmdline)
m = re.match('([^\s]*(?:perl|python3))\s+(?:-T\s+)?[^\s]+(mentat-[^\s]+)(?:\s+(.*))?', cmdline)
if not m:
return None
if m.group(2) in ['mentat-controller.py', 'mentat-statistician', 'mentat-reporter-ng']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment