summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/classes.py10
1 files changed, 6 insertions, 4 deletions
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):