def cleanup_creds():
    with open('configure.json') as file:
        json_text = json.load(file)

    afr_source_dir = os.path.expanduser(json_text['afr_source_dir'])
    # Cleanup modified 'aws_clientcredential.h' file
    misc.cleanup_client_credential_file(afr_source_dir)

    # Cleanup modified 'aws_clientcredential_keys.h' file
    misc.cleanup_client_credential_keys_file(afr_source_dir)
Пример #2
0
def cleanup_local_files():
    with open('configure.json') as file:
        json_text = json.load(file)

    if json_text.get('afr_source_dir', None):
        afr_source_dir = os.path.expanduser(json_text['afr_source_dir'])
    else:
        afr_source_dir = None

    # Cleanup modified 'aws_clientcredential.h' file
    misc.cleanup_client_credential_file(afr_source_dir)

    # Cleanup modified 'aws_clientcredential_keys.h' file
    misc.cleanup_client_credential_keys_file(afr_source_dir)

    # Cleanup modified 'thing_config.py' file
    misc.cleanup_thing_config()
Пример #3
0
def cleanup_creds():
    # Cleanup modified 'aws_clientcredential.h' file
    misc.cleanup_client_credential_file()

    # Cleanup modified 'aws_clientcredential_keys.h' file
    misc.cleanup_client_credential_keys_file()