From: smorloc Date: Tue, 22 Jan 2013 18:07:57 +0000 (-0500) Subject: Allow plugin variable names to include underscore X-Git-Tag: 13.03~64^2~14 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=91f8e545fb886a9ab1cd2068a82f181b7bc22b19;p=cura.git Allow plugin variable names to include underscore For instance 'big_cheese' --- 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: