- #!/usr/bin/env python
-
- try:
- import readline
- except ImportError:
- print("Module readline not available.")
- readline = None
- else:
- if "libedit" in readline.__doc__ :
- readline.parse_and_bind("bind ^I rl_complete")
- else :
- readline.parse_and_bind("tab: complete")
|