py_ext/PythonFileCTNMixin.py
changeset 1751 c28db6f7616b
parent 1748 ba5f64fe0e00
child 1764 d5df428640ff
equal deleted inserted replaced
1750:acf02488f37f 1751:c28db6f7616b
    85     def PythonFileName(self):
    85     def PythonFileName(self):
    86         return os.path.join(self.CTNPath(), "py_ext.xml")
    86         return os.path.join(self.CTNPath(), "py_ext.xml")
    87 
    87 
    88     PreSectionsTexts = {}
    88     PreSectionsTexts = {}
    89     PostSectionsTexts = {}
    89     PostSectionsTexts = {}
       
    90 
    90     def GetSection(self, section):
    91     def GetSection(self, section):
    91         return self.PreSectionsTexts.get(section, "") + "\n" + \
    92         return self.PreSectionsTexts.get(section, "") + "\n" + \
    92                getattr(self.CodeFile, section).getanyText() + "\n" + \
    93                getattr(self.CodeFile, section).getanyText() + "\n" + \
    93                self.PostSectionsTexts.get(section, "")
    94                self.PostSectionsTexts.get(section, "")
    94 
    95