summaryrefslogtreecommitdiff
path: root/packages/python/python-2.5.1/sitecustomize.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2008-02-09 11:50:06 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2008-02-09 11:50:06 +0000
commit39f91766eaca3808c750a5576ff156fcc6cba16e (patch)
treea437ef0d424c5702a855ebda07312bc2969b5be8 /packages/python/python-2.5.1/sitecustomize.py
parent570e63a2f80ccff168d0ab9fd23dc7ed7aa411e3 (diff)
parente6fe7d02c06ed81dab8e843d22d7510b8bdfeeea (diff)
merge of '3381ae4a99275c36eccde0920ee34b936bb7d58c'
and 'c11c3170aaefc8aa258777e4a5f0e932f9c63915'
Diffstat (limited to 'packages/python/python-2.5.1/sitecustomize.py')
-rw-r--r--packages/python/python-2.5.1/sitecustomize.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/python/python-2.5.1/sitecustomize.py b/packages/python/python-2.5.1/sitecustomize.py
index b5e78d3200..4c0ba3f0da 100644
--- a/packages/python/python-2.5.1/sitecustomize.py
+++ b/packages/python/python-2.5.1/sitecustomize.py
@@ -7,11 +7,11 @@
# * load command line history on startup
# * save command line history on exit
-HISTORY_FILENAME = "/tmp/python-history-file.txt"
+import os
def __exithandler():
try:
- readline.write_history_file( HISTORY_FILENAME )
+ readline.write_history_file( "%s/.python-history" % os.getenv( "HOME", "/tmp" ) )
except IOError:
pass
@@ -22,7 +22,7 @@ def __registerExitHandler():
def __enableReadlineSupport():
readline.parse_and_bind("tab: complete")
try:
- readline.read_history_file( "/tmp/python-history-file.txt" )
+ readline.read_history_file( "%s/.python-history" % os.getenv( "HOME", "/tmp" ) )
except IOError:
pass