I must be missing something.
f = open(e, "r")
total = os.path.getsize(e)
for line in f:
progress = f.tell()/total
print progress
This is printing 0.
Outputing total and f.tell() show me they are valid and type() tells me they are long. So there must be something about diving a long that I have missed/forgotten. What am I missing?
Try making one of the values a
floatto prevent your quotient from being rounded down to0: