mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-18 15:24:23 +01:00
Stops printing of empty lines
This commit is contained in:
@@ -49,7 +49,9 @@ class Task(object):
|
||||
def _run_task(self, t=False):
|
||||
if t:
|
||||
s = subprocess.Popen(self.task, shell=True, stdout=subprocess.PIPE)
|
||||
t.write(s.stdout.readline().decode("utf-8"))
|
||||
out = s.stdout.readline().decode("utf-8")
|
||||
if out != "":
|
||||
t.write(out)
|
||||
else:
|
||||
subprocess.Popen(self.task, shell=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user