Fixing the MediaProcessor context manager so it actually, you know, works :)
This commit sponsored by Mikiya Okuno. Thank you!
This commit is contained in:
parent
5fd239fa58
commit
7a85bf985d
@ -123,6 +123,7 @@ class MediaProcessor(object):
|
|||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
self.workbench = mgg.workbench_manager.create()
|
self.workbench = mgg.workbench_manager.create()
|
||||||
|
return self
|
||||||
|
|
||||||
def __exit__(self, *args):
|
def __exit__(self, *args):
|
||||||
self.workbench.destroy()
|
self.workbench.destroy()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user