Эх сурвалжийг харах

fix missing global variable

oz123 11 жил өмнө
parent
commit
dee90934b0
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      pwman/ui/tools.py

+ 5 - 0
pwman/ui/tools.py

@@ -35,6 +35,11 @@ if sys.platform != 'win32':
     import tty
 
 _defaultwidth = 10
+try:
+    import readline
+    _readline_available = True
+except ImportError, e:
+    _readline_available = False
 
 class ANSI(object):
     """