Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Custom evironment setup for the python interpreter
- Usage:
- 1. Save to ~/.pythonrc.py (doesn't have to be there, just conventional)
- 2. Point the PYTHONSTARTUP environment variable to your file; e.g. for bash, add
- the following to your ~/.bashrc or ~/.profile:
- export PYTHONSTARTUP=~/.pythonrc
- """
- ### enable tab completion
- import rlcompleter, readline
- readline.parse_and_bind("tab: complete")
- ### import custom python utilities
- import sys
- from os.path import expanduser
- # I keep my custom_utils.py in my home directory, but put it where you want and update the path here
- sys.path.append(expanduser('~'))
- from custom_utils import *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement