From d650ab866520699e0ea6f0a80c57738be3b5f9d8 Mon Sep 17 00:00:00 2001 From: kalt_r Date: Wed, 29 Jun 2016 14:51:29 +0200 Subject: [PATCH] Script execution --- script/local.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/local.py b/script/local.py index 7ac7eb5..5a4f6e6 100755 --- a/script/local.py +++ b/script/local.py @@ -106,8 +106,9 @@ def elogllrf(subject, message, system, subsystem, section, attachments = []): cmd = cmd + '-a "Subsystem=' + subsystem + '" ' cmd = cmd + '-a "Machine=SwissFEL" ' cmd = cmd + '-a "Domain=All"' - for i in attachments: - cmd = cmd + '-f "' + attachments[i] + '" ' + for attachment in attachments: + cmd = cmd + '-f "' + attachment + '" ' + print attachement cmd = cmd + ' -x -n 1' cmd = cmd + ' "' + message + '"' print cmd