+import os
+
class Progress:
def __init__(self, context):
self.task = ""
if self.window_manager:
self.window_manager.progress_update(value)
self.last = value
+
+
+def image_name(img):
+ fp = img.filepath
+ if fp:
+ return os.path.split(fp)[1]
+ else:
+ return img.name