Thursday, June 4, 2015

Python Interpreter - Removing leading dots.

Create a .pythonrc.py file with following lines in the default home directory (~):

import sys
sys.ps1 = '>>'
sys.ps2 = ''

Add the following line in .bashrc or profile file to export variable.
export PYTHONSTARTUP="~/.pythonrc.py"


No comments:

Post a Comment