Return the section headers of the config file. Parameters ---------- None Returns ------- keys : list of str The list of section headers.
(self)
| 112 | self.vars = vars |
| 113 | |
| 114 | def sections(self): |
| 115 | """ |
| 116 | Return the section headers of the config file. |
| 117 | |
| 118 | Parameters |
| 119 | ---------- |
| 120 | None |
| 121 | |
| 122 | Returns |
| 123 | ------- |
| 124 | keys : list of str |
| 125 | The list of section headers. |
| 126 | |
| 127 | """ |
| 128 | return list(self._sections.keys()) |
| 129 | |
| 130 | def cflags(self, section="default"): |
| 131 | val = self.vars.interpolate(self._sections[section]['cflags']) |