Cleanup: Remove commented code, use logging

This commit is contained in:
gandalf3
2017-06-29 21:20:14 -07:00
parent 1418c45a8a
commit 89ca306299
4 changed files with 3 additions and 6 deletions

View File

@@ -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: