Created
March 15, 2009 16:25
-
-
Save doegox/79465 to your computer and use it in GitHub Desktop.
Forces interactive mode with autocompletion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def set_interactive(): | |
"""Forces interactive mode with autocompletion""" | |
print "<<< Autocompletion was turned on" | |
# Prepare autocompletion mode (rlcompleter is not used per se,. | |
# just for initialisation but that's the way it works) | |
import rlcompleter, readline | |
readline.parse_and_bind('tab: complete') | |
# Force interactive mode | |
os.environ['PYTHONINSPECT'] = '1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment