From 91f8e545fb886a9ab1cd2068a82f181b7bc22b19 Mon Sep 17 00:00:00 2001 From: smorloc Date: Tue, 22 Jan 2013 13:07:57 -0500 Subject: [PATCH] Allow plugin variable names to include underscore For instance 'big_cheese' --- Cura/util/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cura/util/profile.py b/Cura/util/profile.py index 36d76c4e..540dae12 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -586,7 +586,7 @@ def getPluginList(): elif line[0].upper() == 'DEPEND': pass elif line[0].upper() == 'PARAM': - m = re.match('([a-zA-Z][a-zA-Z0-9]*)\(([a-zA-Z_]*)(?::([^\)]*))?\) +(.*)', line[1].strip()) + m = re.match('([a-zA-Z][a-zA-Z0-9_]*)\(([a-zA-Z_]*)(?::([^\)]*))?\) +(.*)', line[1].strip()) if m is not None: item['params'].append({'name': m.group(1), 'type': m.group(2), 'default': m.group(3), 'description': m.group(4)}) else: -- 2.30.2