original_docstring: 
      If jrnl is already installed, loads and returns a config object.
      Else, perform various prompts to install jrnl.
      
docstring: If jrnl is already installed, loads and returns a config object.
  Else, perform various prompts to install jrnl.
docstring_tokens: If jrnl is already installed loads and returns a config object . Else perform various prompts to install jrnl .
code: def load_or_install_jrnl():
      """
      If jrnl is already installed, loads and returns a config object.
      Else, perform various prompts to install jrnl.
      """
      config_path = CONFIG_FILE_PATH if os.path.exists(CONFIG_FILE_PATH) else CONFIG_FILE_PATH_FALLBACK
      if os.path.exists(config_path):
          log.debug('Reading configuration from file %s', config_path)
          config = util.load_config(config_path)
          upgrade.upgrade_jrnl_if_necessary(config_path)
          upgrade_config(config)
          return config
      else:
          log.debug('Configuration file not found, installing jrnl...')
          return install()
code_tokens: def load_or_install_jrnl ( ) : config_path = CONFIG_FILE_PATH if os . path . exists ( CONFIG_FILE_PATH ) else CONFIG_FILE_PATH_FALLBACK if os . path . exists ( config_path ) : log . debug ( 'Reading configuration from file %s' , config_path ) config = util . load_config ( config_path ) upgrade . upgrade_jrnl_if_necessary ( config_path ) upgrade_config ( config ) return config else : log . debug ( 'Configuration file not found, installing jrnl...' ) return install ( )
short_docstring: If jrnl is already installed, loads and returns a config object.
short_docstring_tokens: If jrnl is already installed loads and returns a config object .
comment: """
      If jrnl is already installed, loads and returns a config object.
      Else, perform various prompts to install jrnl.
      """