From 6bca9566e39aaebfe9d932d1fadca9038f0f4cb8 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 17 Apr 2014 13:43:57 +1000 Subject: [PATCH] Fix Double underscore bug in generated code 061f19a52e3c40e30add262db95cea57655b893b introduced an extra underscore in the make_path function for un-named groups. --- site_ansto/instrument/util/gen_sct.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site_ansto/instrument/util/gen_sct.py b/site_ansto/instrument/util/gen_sct.py index 621f65d8..da9224d8 100755 --- a/site_ansto/instrument/util/gen_sct.py +++ b/site_ansto/instrument/util/gen_sct.py @@ -519,7 +519,8 @@ def make_path(MyVar): path = MyVar['path'] if len(path) > 0: path = path.replace('/', '_') - path += '_' + MyVar['name'] + path += '_' + path += MyVar['name'] return path #