Пример #1
0
def main():
    init_readline()
    try:
        import fancycompleter
        print(banner)
        fancycompleter.interact(persist_history=True)
    except ImportError:
        warnings.warn("fancycompleter not installed")
        interp = code.InteractiveConsole(env)
        interp.interact(banner)
Пример #2
0
def main():
    init_readline()
    try:
        import fancycompleter
        print(banner)
        fancycompleter.interact(persist_history=True)
    except ImportError:
        warnings.warn("fancycompleter not installed")
        interp = code.InteractiveConsole(env)
        interp.interact(banner)
Пример #3
0
import fancycompleter
fancycompleter.interact()
Пример #4
0
try: 
    import fancycompleter
except ImportError:
    pass
else:
    fancycompleter.interact()
Пример #5
0
        pass
    else:

        def help(*args, **kw):
            if args and isinstance(args[0], ModuleLoader):
                args = (loadmodule(args[0]), ) + args[1:]
            return old_help(*args, **kw)

        __builtin__.help = help

    #
    #  Local .pystartup file
    #
    import os, __main__

    if os.path.isfile('.pystartup'):
        execfile('.pystartup', __main__.__dict__)


if sys.version_info < (3, 0):
    startup()
del startup

try:
    del __file__
except NameError:
    pass

import fancycompleter
fancycompleter.interact(persist_history=True)