Sfoglia il codice sorgente

fix missing global variable

oz123 11 anni fa
parent
commit
dee90934b0
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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):
     """