Skip to content

Commit 9228f85

Browse files
committed
refactor: adjust profile command
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent cbe2c76 commit 9228f85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gpustack_runtime/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def main():
6969

7070

7171
def profile():
72-
print("\033[2J\033[H", end="")
72+
if sys.stdout.isatty():
73+
print("\033[2J\033[H", end="")
7374

7475
available_deployers: list[str] = []
7576
available_detectors: list[str] = []

0 commit comments

Comments
 (0)