mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-06-25 06:30:37 -04:00
Cleanup
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Has been cancelled
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Has been cancelled
This commit is contained in:
parent
18cc588f93
commit
ecb6ca6553
1 changed files with 2 additions and 5 deletions
|
@ -78,13 +78,10 @@ class LogTail(urwid.WidgetWrap):
|
||||||
|
|
||||||
|
|
||||||
def log_widget(app, platform=sys.platform):
|
def log_widget(app, platform=sys.platform):
|
||||||
if platform == "linux":
|
if platform == "win32":
|
||||||
return LogTerminal(app)
|
|
||||||
elif platform == "win32":
|
|
||||||
return LogTail(app)
|
return LogTail(app)
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"Unknown platform {platform}. Expected linux/win32")
|
return LogTerminal(app)
|
||||||
|
|
||||||
|
|
||||||
# https://stackoverflow.com/a/34029605/3713120
|
# https://stackoverflow.com/a/34029605/3713120
|
||||||
def _tail(f_name, n, offset=0):
|
def _tail(f_name, n, offset=0):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue