Cleanup: Remove commented code, use logging
This commit is contained in:
@@ -5,6 +5,7 @@ from . import blenderpack
|
||||
|
||||
class SubprocessOperatorMixin:
|
||||
timer = None
|
||||
log = logging.getLogger("%s.SubprocessOperatorMixin" % __name__)
|
||||
|
||||
# run once in invoke
|
||||
def setup(self):
|
||||
@@ -35,14 +36,14 @@ class SubprocessOperatorMixin:
|
||||
return {'RUNNING_MODAL'}
|
||||
|
||||
def modal(self, context, event):
|
||||
print("polling")
|
||||
self.log.debug("polling")
|
||||
try:
|
||||
if self.pipe[0].poll():
|
||||
newdata = self.pipe[0].recv()
|
||||
else:
|
||||
newdata = None
|
||||
except EOFError:
|
||||
print("done polling")
|
||||
self.log.debug("done polling")
|
||||
return {'FINISHED'}
|
||||
|
||||
if newdata is not None:
|
||||
|
Reference in New Issue
Block a user