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