From 18d40f69d94ff966a0b3705968a06fd7f2139e1f Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Mon, 16 Jun 2014 10:30:05 +1000 Subject: [PATCH] Make generated drivers log to "../log" instead of "/tmp" --- site_ansto/instrument/util/gen_sct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site_ansto/instrument/util/gen_sct.py b/site_ansto/instrument/util/gen_sct.py index baae4a10..fadd550b 100755 --- a/site_ansto/instrument/util/gen_sct.py +++ b/site_ansto/instrument/util/gen_sct.py @@ -838,7 +838,7 @@ def put_preamble(MyDriver): txt += [' set catch_status [ catch {'] txt += [' set debug_threshold [hgetpropval ${tc_root} debug_threshold]'] txt += [' if {${debug_level} >= ${debug_threshold}} {'] - txt += [' set fd [open "/tmp/%s_[basename ${tc_root}].log" "a"]' % MyDriver['name']] + txt += [' set fd [open "../log/%s_[basename ${tc_root}].log" "a"]' % MyDriver['name']] txt += [' set line "[clock format [clock seconds] -format "%T"] ${debug_string}"'] txt += [' puts ${fd} "${line}"'] txt += [' close ${fd}']