summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-08-17 19:00:30 +0200
committerSanto Cariotti <sancn@live.com>2017-08-17 19:00:30 +0200
commit6b4a38518e342f02d1d2c665bae8eaa47bba147e (patch)
tree39513a346e0fceb035d11aaf2c7394c00438a565
parent1df256734026edceefbcfb3f68315338c0bb53d7 (diff)
fixed clear
-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):