()
return config_path
Create the user s-tui config directory if it doesn't exist
Create the user s-tui config directory if it doesn't exist
Create the user s - tui config directory if it doesn t exist
def make_user_config_dir():
    """
    Create the user s-tui config directory if it doesn't exist
    """
    config_dir = get_config_dir()
    config_path = get_user_config_dir()

    if not config_dir_exists():
        try:
            os.mkdir(config_dir)
        except OSError:
            return None

    if not user_config_dir_exists():
        try:
            os.mkdir(config_path)
            os.mkdir(os.path.join(config_path, 'hooks.d'))
        except OSError:
            return None

    return config_path
def make_user_config_dir ( ) : config_dir = get_config_dir ( ) config_path = get_user_config_dir ( ) if not config_dir_exists ( ) : try : os . mkdir ( config_dir ) except OSError : return None if not user_config_dir_exists ( ) : try : os . mkdir ( config_path ) os . mkdir ( os . path . join ( config_path , 'hooks.d' ) ) except OSError : return None return config_path