Returns the current settings dictionary. If you've not setup the filename for the settings, a default one will be used and then read. Note that you can display the dictionary in text format by printing the object itself. :return: The current settings dictionary
(self)
| 22873 | return value |
| 22874 | |
| 22875 | def get_dict(self): |
| 22876 | """ |
| 22877 | Returns the current settings dictionary. If you've not setup the filename for the |
| 22878 | settings, a default one will be used and then read. |
| 22879 | |
| 22880 | Note that you can display the dictionary in text format by printing the object itself. |
| 22881 | |
| 22882 | :return: The current settings dictionary |
| 22883 | :rtype: Dict |
| 22884 | """ |
| 22885 | if self.full_filename is None: |
| 22886 | self.set_location() |
| 22887 | if self.autosave or self.dict == {}: |
| 22888 | self.read() |
| 22889 | self.save() |
| 22890 | return self.dict |
| 22891 | |
| 22892 | def __setitem__(self, item, value): |
| 22893 | """ |
no test coverage detected