소스 검색

Fixed bug in model bootstrap compiler

Yentl Van Tendeloo 8 년 전
부모
커밋
1a274716ad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      interface/HUTN/hutn_compiler/model_bootstrap_visitor.py

+ 1 - 1
interface/HUTN/hutn_compiler/model_bootstrap_visitor.py

@@ -166,7 +166,7 @@ class ModelBootstrapVisitor(Visitor):
             # Value attribute
             attr_value = tree.get_children("value")[0].get_tail()[0]
             if attr_value.head == "STRVALUE":
-                attr_value = attr_value.get_text()[1:-1]
+                attr_value = '"%s"' %  attr_value.get_text()[1:-1]
             elif attr_value.head == "TRUE":
                 attr_value = True
             elif attr_value.head == "FALSE":