def edit(): """Open a text editor to edit the translations. """ if not getattr(PARSER, 'filename', None): raise EnvironmentError("Translation system is not initialized") open_text_editor(PARSER.filename)
def edit(self): """Open a text editor to edit the configuration. """ if open_text_editor(self.filename): # Reload config to check if autostart has changed self.read(self.filename, encoding="utf-8") self.enable_autostart(self.getboolean('GENERAL', 'autostart'))
def edit(self): """Open a text editor to edit the configuration. """ if open_text_editor(self.filename): # Reload config to check if autostart has changed self.load()