Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/models/c_extension/python_wrapper/WrapperGenerator.py

    r13e46abe r1f5f206  
    560560    def replaceToken(self, line, key, value): #pylint: disable-msg=R0201 
    561561        """ Replace a token in the template file  
    562             @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 
     562            :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 
    566566        """ 
     567        _str_value = str(value) 
     568        _new_value = _str_value.replace('\\','/') 
    567569        lenkey = len(key) 
    568570        newline = line 
     
    570572        while newline.count(key) > 0: 
    571573            index = newline.index(key) 
    572             newline = newline[:index] + value + newline[index + lenkey:] 
     574            newline = newline[:index] + _new_value + newline[index + lenkey:] 
    573575 
    574576        return newline 
Note: See TracChangeset for help on using the changeset viewer.