Explorar el Código

fix missing global variable

oz123 hace 11 años
padre
commit
dee90934b0
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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):
     """