Skip to content

Commit

Permalink
Fix the new python parser to accept multi-line strings
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17445 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Sep 30, 2013
1 parent 5fe683a commit f5a975a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/generate_icons.py
Expand Up @@ -294,7 +294,7 @@ def getGraphicsWithPortsForClass(modelicaClass):
class_name = answer[0:answer.find(',')]
component_name = answer[answer.find(',') + 1:][0:answer[answer.find(',') + 1:].find(',')]

if OMPython.sendExpression('isConnector(' + class_name + ')'):
if ask_omc('isConnector', class_name):
try:
comp_annotation = ask_omc('getNthComponentAnnotation', modelicaClass + ', ' + str(comp_id))['SET2']['Set1']
except KeyError as ex:
Expand Down

0 comments on commit f5a975a

Please sign in to comment.