# OpenEmbedded sitecustomize.py (C) 2002-2008 Michael 'Mickey' Lauer # GPLv2 or later # Version: 20081123 # Features: # * set proper default encoding # * enable readline completion in the interactive interpreter # * load command line history on startup # * save command line history on exit import os def __exithandler(): try: readline.write_history_file( "%s/.python-history" % os.getenv( "HOME", "/tmp" ) ) except IOError: pass def __registerExitHandler(): import atexit atexit.register( __exithandler ) def __enableReadlineSupport(): readline.set_history_length( 1000 ) readline.parse_and_bind( "tab: complete" ) try: readline.read_history_file( "%s/.python-history" % os.getenv( "HOME", "/tmp" ) ) except IOError: pass def __enableDefaultEncoding(): import sys try: sys.setdefaultencoding( "utf8" ) except LookupError: pass import sys try: import rlcompleter, readline except ImportError: pass else: __enableDefaultEncoding() __registerExitHandler() __enableReadlineSupport() ='switch'/> Multi-Tech CoreCDP 1.x OpenEmbedded TreeMulti-Tech Systems
summaryrefslogtreecommitdiff
path: root/packages/bash
AgeCommit message (Expand)AuthorFiles
2008-04-08bash: also sync PR with PokyMarcin Juszkiewicz1
2008-04-08bash: fix postinst to not touch host systemMarcin Juszkiewicz3
2007-10-25bash: apply upstream fixes: up to 025 (was to 005) - from PokyMarcin Juszkiewicz3
2007-02-20bash: unified, bumped PRMarcin Juszkiewicz3
2007-02-20bash: create /etc/shells before using itMarcin Juszkiewicz2
2006-11-27bash: added 3.2 with upstream patches: 001 -> 005Marcin Juszkiewicz3
2006-04-04bash 3.0: Bump PRRichard Purdie1
2006-04-04bash 3.0: Add various fixes from upstream (from Stelios Koroneos #767)Richard Purdie2