ethumb test: more correct global usage

This commit is contained in:
Davide Andreoli 2016-01-04 20:14:58 +01:00
parent 1599140196
commit 592467c7bd
1 changed files with 5 additions and 1 deletions

View File

@ -64,6 +64,8 @@ start_time = 0.0
def generate_cb(et, success):
global in_progress
# thumbnail completed
if success is True:
# print out the result
@ -76,6 +78,9 @@ def generate_cb(et, success):
def start_thumb(label, params):
global in_progress
global start_time
# setup ethumb params
et.file = filename
for name, val in params.items():
@ -83,7 +88,6 @@ def start_thumb(label, params):
# print test name and keep track of start time
print(label)
global start_time
start_time = time.time()
# start the thumbnailing process