def get_editor(): user_editor = None c = SmashConfig() econfig = c.load_from_etc(fname_editor_config) if is_windowing_env: user_editor = econfig['window_env'] else: user_editor = econfig['console'] editor = user_editor return editor
def _load_prompt_config(self): c = SmashConfig() components = c.load_from_etc('prompt.json') if not components: components = DEFAULT_PROMPT out = [] for component in components: out.append(PromptComponent(**component)) components = out self.prompt_components = components