Commit 01726081 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed bug in Python wrapper generation

parent f820e172
...@@ -413,9 +413,9 @@ class SwigInputBuilder: ...@@ -413,9 +413,9 @@ class SwigInputBuilder:
valueUnits=self.configModule.UNITS[key] valueUnits=self.configModule.UNITS[key]
elif ("*", methName) in self.configModule.UNITS: elif ("*", methName) in self.configModule.UNITS:
valueUnits=self.configModule.UNITS[("*", methName)] valueUnits=self.configModule.UNITS[("*", methName)]
elif methName.startswith('get') and returnType not in ('void', 'int', 'std::string'): elif methName.startswith('get') and returnType not in ('void', 'int', 'std::string', 'const std::string &'):
s = 'do not know how to add units to %s::%s' \ s = 'do not know how to add units to %s %s::%s' \
% (shortClassName, methName) % (returnType, shortClassName, methName)
raise Exception(s) raise Exception(s)
else: else:
valueUnits=[None, ()] valueUnits=[None, ()]
......
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