options.app_directory = raw_input('Deployment directory:\r\n') while not os.path.exists(options.app_directory): print 'Directory does not exist' options.app_directory = raw_input('Deployment directory:\r\n') app_id = options.app_id client_name = options.client_name app_directory = options.app_directory app = EodTools(app_id, client_name, app_directory) #if you want to delete the files from the baseline directory once they are archived, pass the "delete=True" argument valid_file = app.file_validation(200000) if valid_file: app.load_baseline_data() app.baseline_update() app.archive_baseline(delete=False) baseline_status = app.check_erros() app.sendemail(from_addr = '*****@*****.**', to_addr_list = ['*****@*****.**'], cc_addr_list = [''], reply_to_addr ='*****@*****.**', login = '******', password = '******', failure = baseline_status)