mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-18 23:34:19 +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):
|
def _run_task(self, t=False):
|
||||||
if t:
|
if t:
|
||||||
s = subprocess.Popen(self.task, shell=True, stdout=subprocess.PIPE)
|
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:
|
else:
|
||||||
subprocess.Popen(self.task, shell=True)
|
subprocess.Popen(self.task, shell=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user