[oe-commits] org.oe.dev python 2.5.1 sitecustomize.py now saves the history in $HOME, not in /tmp

mickeyl commit openembedded-commits at lists.openembedded.org
Wed Feb 6 22:44:13 UTC 2008


python 2.5.1 sitecustomize.py now saves the history in $HOME, not in /tmp

Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: 1b09c4fe8e1d1811f3dcd78988db7c3b3e182954
ViewMTN: http://monotone.openembedded.org/revision/info/1b09c4fe8e1d1811f3dcd78988db7c3b3e182954
Files:
1
packages/python/python-2.5.1/sitecustomize.py
packages/python/python_2.5.1.bb
Diffs:

#
# mt diff -r9549dfd1394792797ed243c1084dd74eb06e0a07 -r1b09c4fe8e1d1811f3dcd78988db7c3b3e182954
#
# 
# 
# patch "packages/python/python-2.5.1/sitecustomize.py"
#  from [af970496467ab4f0fbef36bbcac4de27afc77306]
#    to [37922f91ecd1cbccb466f30c120aeabfd2a0ae05]
# 
# patch "packages/python/python_2.5.1.bb"
#  from [55634fe124616917620d9a3239b160c4abcfd772]
#    to [6d27b00bf376c2bb92ca2334ea83cc13b1d06aa0]
# 
============================================================
--- packages/python/python-2.5.1/sitecustomize.py	af970496467ab4f0fbef36bbcac4de27afc77306
+++ packages/python/python-2.5.1/sitecustomize.py	37922f91ecd1cbccb466f30c120aeabfd2a0ae05
@@ -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 __enableReadlineSupport():
 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
 
============================================================
--- packages/python/python_2.5.1.bb	55634fe124616917620d9a3239b160c4abcfd772
+++ packages/python/python_2.5.1.bb	6d27b00bf376c2bb92ca2334ea83cc13b1d06aa0
@@ -7,7 +7,7 @@ DEPENDS_sharprom = "python-native readli
 DEPENDS_sharprom = "python-native readline zlib gdbm openssl"
 
 # NOTE: Keep the digit in sync with BASEREV in contrib/generate-manifest-2.5.py
-PR = "ml7"
+PR = "ml8"
 
 PYTHON_MAJMIN = "2.5"
 






More information about the Openembedded-commits mailing list