Changes in src/sas/models/c_extension/python_wrapper/WrapperGenerator.py [1f5f206:13e46abe] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/models/c_extension/python_wrapper/WrapperGenerator.py
r1f5f206 r13e46abe 560 560 def replaceToken(self, line, key, value): #pylint: disable-msg=R0201 561 561 """ Replace a token in the template file 562 :param line: line of text to inspect563 :param key: token to look for564 :param value: string value to replace the token with565 :return: new string value562 @param line: line of text to inspect 563 @param key: token to look for 564 @param value: string value to replace the token with 565 @return: new string value 566 566 """ 567 _str_value = str(value)568 _new_value = _str_value.replace('\\','/')569 567 lenkey = len(key) 570 568 newline = line … … 572 570 while newline.count(key) > 0: 573 571 index = newline.index(key) 574 newline = newline[:index] + _new_value + newline[index + lenkey:]572 newline = newline[:index] + value + newline[index + lenkey:] 575 573 576 574 return newline
Note: See TracChangeset
for help on using the changeset viewer.