From 6b4a38518e342f02d1d2c665bae8eaa47bba147e Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 17 Aug 2017 19:00:30 +0200 Subject: fixed clear --- lib/classes.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/classes.py b/lib/classes.py index d7df5e1..92dfe92 100644 --- a/lib/classes.py +++ b/lib/classes.py @@ -1,4 +1,5 @@ -import redis, socket, os +import redis, os +import platform try: from .config import config as co @@ -17,10 +18,11 @@ def clear(): """ clear the window """ - try: + nameOs = platform.system() + if nameOs == 'Linux': + os.system('clear') + else: os.system('clear') - except: - os.system('cls') class PersonalError(Exception): -- cgit v1.2.3-18-g5258