I would like to get some kind of confirmation that the upload is success, I have my methods defined similar to the following. However the value of global variable is not changing. Please help
global upload_confirm
upload_confirm = False
def confirm_upload():
upload_confirm = True
def start_new_upload():
confirm_upload()
while (upload_confirm != True):
print "waiting for upload to be true"
time.sleep(5)
if (upload_confirm == True):
print "start Upload"
start_new_upload()