Don't use print
This commit is contained in:
parent
314ea65427
commit
f05d866d84
|
@ -10,13 +10,13 @@ def get_app_class(template):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for file in os.listdir(path):
|
for file in os.listdir(path):
|
||||||
print(file)
|
self.console.write(file)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
try:
|
try:
|
||||||
os.stat(path)
|
os.stat(path)
|
||||||
print(path)
|
self.console.write(path)
|
||||||
except OSError:
|
except OSError:
|
||||||
print(f"ls: cannot access '{path}': No such file or directory")
|
self.console.write(f"ls: cannot access '{path}': No such file or directory")
|
||||||
|
|
||||||
self.exit()
|
self.exit()
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ def get_app_class(template):
|
||||||
for pid, app in apps.items():
|
for pid, app in apps.items():
|
||||||
args = app.argv[1:]
|
args = app.argv[1:]
|
||||||
name = app.name
|
name = app.name
|
||||||
print(f'{pid} {name} {args}')
|
self.console.write(f'{pid} {name} {args}')
|
||||||
self.exit()
|
self.exit()
|
||||||
|
|
||||||
return App
|
return App
|
||||||
|
|
Loading…
Reference in New Issue
Block a user