Commit 3d3a1c45 authored by Maxime Perrotin's avatar Maxime Perrotin

Fix case issue when used with kazoo

parent 67108569
......@@ -135,6 +135,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
2.0.44 (09/2019)
- Fix case issue when used combined with kazoo
2.0.43 (05/2019)
- Better handling of path in generated gpr files
......
......@@ -660,7 +660,9 @@ package {process_name} is'''.format(generic=generic_spec,
if not generic:
ads_template.append(
u'pragma Export(C, {name}, "{proc}_PI_{name}");'
.format(name=signame.lower(), proc=process_name.lower()))
.format(name=signame, proc=process_name.lower()))
# don't lower case the signal name, not for kazoo at least
#.format(name=signame.lower(), proc=process_name.lower()))
if simu:
# Generate code for the mini-cv template
......@@ -823,8 +825,10 @@ package {process_name} is'''.format(generic=generic_spec,
.format(UNICODE_SEP,
signal['name'],
param_spec))
signame = signal['name'].lower() if taste else signal['name']
procname = process_name.lower() if taste else process_name
# no: taste target keeps the case (with kazoo)
#signame = signal['name'].lower() if taste else signal['name']
signame = signal['name']
ads_template.append(u'pragma import(C, RI{sep}{sig},'
u' "{proc}_RI_{sig}");'
.format(sep=UNICODE_SEP,
......@@ -879,8 +883,10 @@ package {process_name} is'''.format(generic=generic_spec,
elif not generic:
ads_template.append(ri_header + u';')
signame = proc.inputString.lower() if taste else proc.inputString
# don't lower in case of taste (kazoo)
#signame = proc.inputString.lower() if taste else proc.inputString
procname = process_name.lower() if taste else process_name
signame = proc.inputString
ads_template.append(u'pragma import(C, RI{sep}{sig},'
u' "{proc}_RI_{sig}");'
.format(sep=UNICODE_SEP,
......
......@@ -141,7 +141,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '2.0.43'
__version__ = '2.0.44'
if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment