catherder/config.py
def initial_config():
    r"""Perform initial configuration steps, asking for user input."""
    usr_config = configparser.ConfigParser(
        interpolation=configparser.ExtendedInterpolation())
    usr_config.read(usr_config_file)
    usr_config['general']['default_project'] = input(
        'What is the name of the project that should be managed by default?: ')
    usr_config['github']['token'] = input(
        'What is your Github authentication token?: ')
    usr_config['smartsheet']['token'] = input(
        'What is your Smartsheet authenticaiton token?: ')
    with open(usr_config_file, 'w') as fd:
        usr_config.write(fd)
    # Update default_config by re-reading updated files
    global default_config
    default_config.read([def_config_file, usr_config_file])
r"""Perform initial configuration steps, asking for user input.
r"""Perform initial configuration steps, asking for user input.
r " " " Perform initial configuration steps asking for user input .
def initial_config():
    usr_config = configparser.ConfigParser(
        interpolation=configparser.ExtendedInterpolation())
    usr_config.read(usr_config_file)
    usr_config['general']['default_project'] = input(
        'What is the name of the project that should be managed by default?: ')
    usr_config['github']['token'] = input(
        'What is your Github authentication token?: ')
    usr_config['smartsheet']['token'] = input(
        'What is your Smartsheet authenticaiton token?: ')
    with open(usr_config_file, 'w') as fd:
        usr_config.write(fd)
    global default_config
    default_config.read([def_config_file, usr_config_file])
def initial_config ( ) : usr_config = configparser . ConfigParser ( interpolation = configparser . ExtendedInterpolation ( ) ) usr_config . read ( usr_config_file ) usr_config [ 'general' ] [ 'default_project' ] = input ( 'What is the name of the project that should be managed by default?: ' ) usr_config [ 'github' ] [ 'token' ] = input ( 'What is your Github authentication token?: ' ) usr_config [ 'smartsheet' ] [ 'token' ] = input ( 'What is your Smartsheet authenticaiton token?: ' ) with open ( usr_config_file , 'w' ) as fd : usr_config . write ( fd ) global default_config default_config . read ( [ def_config_file , usr_config_file ] )
r"""Perform initial configuration steps, asking for user input.
r " " " Perform initial configuration steps asking for user input .
r"""Perform initial configuration steps, asking for user input.""" # Update default_config by re-reading updated files