From e9b655e46ef0bb64bde89d51e96c6af942ea8b42 Mon Sep 17 00:00:00 2001 From: Calum Andrew Morrell Date: Wed, 28 Aug 2024 00:28:44 +0100 Subject: [PATCH] moved from subprocess to os --- dg_clt/screen.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dg_clt/screen.py b/dg_clt/screen.py index 65d8b81..d7d0188 100644 --- a/dg_clt/screen.py +++ b/dg_clt/screen.py @@ -1,6 +1,5 @@ import os -import subprocess def clear(): - subprocess.call('clear' if os.name == 'posix' else 'cls') + os.system('cls' if os.name == 'nt' else 'clear')