mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-07-27 12:06:09 +02:00
adjusted logging format, patched $DISPLAY error
This commit is contained in:
parent
b13d212f05
commit
750713d0cf
5 changed files with 35 additions and 13 deletions
|
@ -184,8 +184,11 @@ class ShellMessage(object):
|
|||
# Do something with output.
|
||||
toprint = self.read(0.1) # 0.1 s to let the shell output the result
|
||||
# Redirect output.
|
||||
from pykms_GuiBase import gui_redirect # Import after variables creation !
|
||||
gui_redirect(toprint)
|
||||
if sys.stdout.isatty():
|
||||
print(toprint)
|
||||
else:
|
||||
from pykms_GuiBase import gui_redirect # Import after variables creation.
|
||||
gui_redirect(toprint)
|
||||
|
||||
def spawn(self):
|
||||
# Save everything that would otherwise go to stdout.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue