소스 검색

fix missing global variable

oz123 11 년 전
부모
커밋
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):
     """