summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/python/python3/sitecustomize.py
blob: 4c8b5e2ba3da168a088e9e90f11a9aab8bcc7aa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# OpenEmbedded sitecustomize.py (C) 2002-2008 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
# 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

import sys
try:
    import rlcompleter, readline
except ImportError:
    pass
else:
    __registerExitHandler()
    __enableReadlineSupport()
85714c12d9950e9e94e18d145e05'>Make cp invocations BSD compatibleHolger Freyther1 2005-09-19qpf-dejavu: updated to 1.14Marcin Juszkiewicz5 2005-09-05upgraded DejaVu fonts in QPF format to 1.13-20050820 snapshot)Marcin Juszkiewicz5 2005-06-30import clean BK tree at cset 1.3670Koen Kooi12 2005-06-26qpf-husky*: changed archive name to get updated archive with all rotations - ...Marcin Juszkiewicz2 2005-06-26removed qpf-hunky_0.3.0.bb as we have HunkyFonts in QPF format in many other ...Marcin Juszkiewicz1 2005-06-23Merge bk://oe-devel@oe-devel.bkbits.net/openembeddedMarcin Juszkiewicz6 2005-05-25Merge with OE (there may still be a bug in the busybox postinst script)John Bowler1 2005-05-25Merge marsco.kalmiopsis:/home/nslu2/openembeddedJohn Bowler6 2005-04-24add arabic qpf fonts courtesy Abdulhaq LynchMichael Lauer1 2005-04-05use the new "update-qtfontdir -f" in fonts that "inherit qpf"Holger Schurig1 2005-04-05update-qftondir: added -f switch and other goodiesHolger Schurig1 2005-04-03Merge bk://oe-devel@oe-devel.bkbits.net/openembeddedMichael Lauer2 2005-03-23Merge nslu2-linux@nslu2-linux.bkbits.net:openembeddedg2@giantshoulder.com12 2005-02-23Merge bk://oe-devel.bkbits.net/openembeddednslu2-linux.adm@bkbits.net1 2005-02-22Merge bk://oe-devel.bkbits.net/openembeddednslu2-linux.adm@bkbits.net1 2005-02-16Merge bk://oe-devel@oe-devel.bkbits.net/openembedded/Marcin Juszkiewicz7 2005-02-16added fonts in QPF format:Marcin Juszkiewicz9 2005-02-15more minor font adjustementsMichael Lauer2 2005-02-15split QPF fonts into one-size packages via "qpf" bbclassMarcin Juszkiewicz6 2005-02-15make qpf-qte no longer suck thanks to the usage of do_split_packagesMichael Lauer1 2005-02-15Merge bk://oe-devel@oe-devel.bkbits.net/openembeddedMichael Lauer3 2005-02-14add qpf-fonts hunkysans and hunkyserif. patch courtesy Gints PolisMichael Lauer1 2005-01-26Many files:Greg Gilbert3 2004-12-31Merge bk://oe-devel.bkbits.net/openembeddednslu2-linux.adm@bkbits.net2 2004-12-09Merge oe-devel@oe-devel.bkbits.net:openembeddedChris Larson6