;ò
BÕAHc           @   s>  d  Z  d k l Z d e i d Z e i Z e i Z y# d e	 i
 e	 _
 e i
 d 7_
 Wn e j
 o n Xd k Z d k Z d k Z d k Z d k Z d k Z d k l Z l Z d k l Z d	 k l Z d
 k l Z d k l Z d k l Z d k l Z l  Z  d k! Td „  Z" e# e# e# d e# e e$ d „ Z% d S(   s¾   
IPython -- An enhanced Interactive Python

Requires Python 2.1 or better.

This file contains the main make_IPython() starter function.

$Id: ipmaker.py 2930 2008-01-11 07:03:11Z vivainio $(   s   Releases   %s <%s>s   Fernandos   
    Python: %s

    IPython: Fernando Perez, Janko Hauser, Nathan Gray, and many users.
    See http://ipython.scipy.org for more information.sa   

    Copyright (c) 2001-2004 Fernando Perez, Janko Hauser, Nathan Gray.
    All Rights Reserved.N(   s   pprints   pformat(   s	   DPyGetOpt(   s   Struct(   s
   OutputTrap(   s   ConfigLoader(   s   InteractiveShell(   s   cmd_line_usages   interactive_usage(   s   *c         C   s<   |  t i j o d G|  GHt t i |  ƒ n t |  ƒ d  S(   Ns   reload(   s   modnames   syss   moduless   reloads
   __import__(   s   modname(    (    s?   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/ipmaker.pys   force_import=   s    	i   c   <   u   J   s9  e  } |  e j o e i }  n | d d | d | d | | }5 y! d k l }4 |4 ƒ  |5 i d <Wn e j
 o e d ƒ n Xh  |5 _ | o& d k l } | i d	 d
 ƒ e _ n d e i i d ƒ d f d e f d g |5 _ e |5 _ e i d j o d } d }* n d } d }* e i i e i  i! d e i i" |5 i# |* ƒ ƒ ƒ }/ e i i% d d ƒ d k }" e i i& |" i' ƒ }! ~" d }+ d } e+ |+ ƒ e+ | ƒ } e- d d
 d d d d d d
 d g  d d
 d d d  d! d" d d# d d$ d% d& d
 d' d d( d d) d* d+ d d d d, d d- |/ d. d d/ d d0 d d1 d
 d2 d
 d3 d d4 d d5 d d6 d d7 d d8 d9 d: d; d< d= d> d
 d? d d@ d
 dA d dB d dC d dD d dE dF | dG d
 dH d
 dI d dJ d dK d dL d dM d dN dO dP d dQ d
 dR d dS d dT d dU d
 dV d dW d* dX dY dZ d ƒ :} h  e/ d[ <e0 d\ <e1 d] <e d^ <}7 e- d_ g  d` g  da g  db g  g dc g  dd g  de g  df g  dg d ƒ 	} |7 i4 ƒ  }- |- i6 e7 |+ ƒ ƒ |- e c dh |7 e 7<|- e |- e8 <|- e =| i4 ƒ  }  |  i6 | ƒ h  di dh i" |- e: |- e8 g ƒ <dj dh i" |- e/ |- e0 |- e1 g ƒ <}3 e< i< ƒ  }2 |2 i> d ƒ |2 i? | ƒ y |2 i@ |  ƒ Wn8 e< iA j
 o) }8 eC GHe dk |8 ƒ e iD d
 ƒ n Xe- |2 iE ƒ }9 |2 iG } |  i6 |9 ƒ |  iI o eJ eC ƒ e iD ƒ  n |  iK o e GHe iD ƒ  n |  iL o |5 iM dl ƒ e iD ƒ  n e i iN e i i |  iO ƒ ƒ e i iP |  iO ƒ o |5 iQ |  iO | dm ƒ n |  iR o |5 iQ |  iO | dS ƒ n eS |9 e+ dn ƒ e+ do ƒ e+ dp ƒ e+ dq ƒ g ƒ d }1 |  iU o"|  iU }1 |  iV }& y eX |  iU ƒ }$ WnO eY j
 oC |  iV o |5 iZ ƒ  n e dr |  iU ƒ e }$ d }1 |  `U qÿXyq |$ i[ ƒ  |$ i[ ƒ  |$ i[ ƒ  ds } | d U|& |9 _V |1 |9 _U |  i6 |9 ƒ |$ i[ ƒ  ds } | d U|$ i] ƒ  Wqÿ|$ i] ƒ  |  iV o |5 iZ ƒ  n e dt ƒ qÿXn du } dv } d } e- dw ea dx | | | | dy d
 ƒdz ea d{ | | | | ƒ d0 ea d| | | | | ƒ d} d ƒ }( |( ic id ƒ  y ee |  if |  iO ƒ |  _f Wn< eY j
 o0 |  iV o |5 iZ ƒ  n e d~ |  if ƒ n Xe  }# |  ih oe y* ee d |  ih | |  iO ƒ |  _f ei }# WqKeY j
 o( |  iV o |5 iZ ƒ  n d |9 _h qKXn e } |  ik o	 d€ GHn‘ |  if ol y> el |3 ƒ }
 |
 in |  if |- d_ |  iO d d
 d‚ |3 di ƒ} Wqô|5 iZ ƒ  e dƒ |  if d„ ƒ qôXn e d… d† |  iO d‡ ƒ ea dˆ d
 ƒ }) |5 ip |  iq ƒ |) ir ƒ  | i4 ƒ  |5 _s |5 is }; |; i6 | ƒ | o |; i6 | ƒ n |; i6 |9 ƒ |; i6 | ƒ |9 |; _F | |; _H e- ƒ  |5 _v |; iw oc d
 |; _k d |; _x d |; _y d‰ |; _z dŠ |; _{ d |; _| d* |; _} |; _~ |; _ d% |; _€ d‹ |; _q n |5 i ƒ  |; ih o dŒ |; ih } n d } e i i" |  iO | ƒ |5 _ƒ |) i„ ƒ  |5 ip |; iq ƒ |) ir ƒ  |; iU o |5 i… |; iU dŽ ƒ n7 |; i† o |5 i… |; i† ƒ n |; i‡ o |5 i… ƒ  n |; iˆ i‰ ƒ  d* j oT y e i  d } Wn3 e‹ j
 o' e i d j o
 d } qd‘ } n X| |; _ˆ n |5 i |; _ y: d’ k lŒ }% |; iŒ o |% i eŽ _ n |% i eŽ _ ~% Wn e j
 o n X|5 i i6 e‘ i’ ƒ |; iV o  d“ GHd” GHd• GHey |; i’ ƒ n xB |; i“ D]7 } y d– | |5 i UWqÎ|5 iZ ƒ  e• | ƒ qÎXqÎWx‚ |; i– D]w }. |. g  j oc |. d d— i" |. d
 ƒ f \ } }' y d˜ | d™ |' |5 i UWqŠ|5 iZ ƒ  e• | |' ƒ qŠXqqWxF |; i™ D]; } y d˜ | dš |5 i UWq˜|5 iZ ƒ  e• | ƒ q˜Xq˜WxC |; iš D]8 } y | |5 i UWqá|5 iZ ƒ  e d› | ƒ qáXqáWxs |; iœ D]h }0 y ee |0 e i |! g ƒ }0 Wn# eY j
 o e ež dœ ƒ ƒ q'X|5 iŸ e i i  |0 ƒ |5 i ƒ q'Wy d k¡ }6 WnO e j
 o) |  iV o |5 iZ ƒ  n e d ƒ n |5 iZ ƒ  e• dž ƒ n X|  ih o |# oJ dŸ |  ih }: y e£ |: ƒ WqX|5 iZ ƒ  d  G|: Gd¡ GHe• |: ƒ qXXn e£ d¢ ƒ y e£ d£ ƒ WnN |  iO d¤ } |5 iZ ƒ  e i i¥ | ƒ o e | d¥ ƒ n e• d£ ƒ n X|; i6 |9 ƒ |( ic i¦ ƒ  |; i§ o |( i¨ |( ic i© ƒ  7_¨ n |5 i i6 |5 i ƒ |1 o¨ d¦ GHy} |; iV o
 d }, n d
 }, |( iU id ƒ  |5 iŸ |1 |5 i d§ d
 dD |, ƒ|( iU i¦ ƒ  |; i§ o |( i¨ |( iU i© ƒ  7_¨ n Wq¹e d¨ |1 ƒ |5 iZ ƒ  q¹Xn |( i« id ƒ  | o% |; iH o |; iH d i¬ ƒ  i­ d© ƒ oŽ |5 i dª } d« |5 i dª <e i |5 i f \ } e _ e i d
 }	 | e _ z |5 iŸ | d |5 i ƒ Wd | e _ |	 e i (| |5 i dª <Xn |( i« i¦ ƒ  |; i§ o |( i¨ |( i« i© ƒ  7_¨ n |; i± o d* |; _} |; _~ |; _ n |; i} d* j o d |; _} n |; i~ d* j o d |; _~ n |; i d* j o d |; _ n |; i} i² d¬ d ƒ |; _} |; i~ i² d¬ d ƒ |; _~ |; i i² d¬ d ƒ |; _ |; i} i³ d ƒ d
 } |; iµ | |; _µ |; i¶ o d |; _· n |; i· o |5 i } n g  } |; ih o | iN d­ |; ih ƒ n |( i¨ o | iN |( i¨ ƒ n d i" | ƒ |5 _¹ |5 iº ƒ  |5 Sd S(®   sc  This is a dump of IPython into a single function.

    Later it will have to be broken up in a sensible manner.

    Arguments:

    - argv: a list similar to sys.argv[1:].  It should NOT contain the desired
    script name, b/c DPyGetOpt strips the first argument only for the real
    sys.argv.

    - user_ns: a dict to be used as the user's namespace.s   __IPs   user_nss   user_global_nss   embedded(   s   _Helpers   helps$   help() not available - check site.py(   s   ultraTBs   call_pdbi   sI   Python %s
Type "copyright", "credits" or "license" for more information.
s   
i    s-   IPython %s -- An enhanced Interactive Python.sÌ   ?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.
s   posixs    s   .ipythons   .inis   _ipythons
   IPYTHONDIRNs_  autocall=i autoindent! automagic! banner! cache_size|cs=i c=s classic|cl color_info! colors=s confirm_exit! debug! deep_reload! editor=s log|l messages! nosep object_info_string_level=i pdb! pprint! prompt_in1|pi1=s prompt_in2|pi2=s prompt_out|po=s pydb! pylab_import_all! quick screen_length|sl=i prompts_pad_left=i logfile|lf=s logplay|lp=s profile|p=s readline! readline_merge_completions! readline_omit__names! rcfile=s separate_in|si=s separate_out|so=s separate_out2|so2=s xmode=s wildcards_case_sensitive! magic_docstrings system_verbose! multi_line_specials! term_title! wxversion=s autoedit_syntax!sg   help interact|i ipythondir=s Version upgrade gthread! qthread! q4thread! wthread! tkthread! pylab! tk! s   autocalls   autoedit_syntaxs
   autoindents	   automagics   autoexecs   banners   cs
   cache_sizeiè  s   classics
   color_infos   colorss   NoColors   confirm_exits   debugs   deep_reloads   editors   0s   gthreads   interacts
   ipythondirs   logs   logfiles   logplays   messagess   multi_line_specialss   noseps   object_info_string_levels   pdbs   pprints   profiles
   prompt_in1s	   In [\#]: s
   prompt_in2s	      .\D.: s
   prompt_outs	   Out[\#]: s   prompts_pad_lefts   pylabs   pylab_import_alls   q4threads   qthreads   quicks   quiets   rcfiles	   ipythonrcs   readlines   readline_merge_completionss   readline_omit__namess   screen_lengths   separate_ins   separate_outs   separate_out2s   system_headers   IPython system call: s   system_verboses
   term_titles   tks   upgrades   Versions   wildcards_case_sensitives   wthreads	   wxversions   xmodes   Contexts   magic_docstringss'   include import_mod import_all execfile s   import_some s&   execute alias readline_parse_and_bind s   readline_remove_delims s   includes
   import_mods
   import_alls   import_somes   executes   execfiles   aliass   readline_parse_and_binds   readline_remove_delimss    s   preserves   add_flips   
Error in Arguments: "%s"s   -latexs   installs   log logfiles   rcfile profiles   classic profiles   classic rcfiles   Could not open logplay file i   sg   Logplay file lacking full configuration information.
I'll try to read it, but some things may not work.s   Output messages. s   Error messages. s   configs   Configuration Loaders	   quiet_outs	   user_execs   User File Executions
   Log Loaders   summarys2   Configuration file %s not found. Ignoring request.s
   ipythonrc-s5   Launching IPython in quick mode. No config file read.s   purges   uniques$   Problems loading configuration file s2   
Starting with default -bare bones- configuration.s?   No valid configuration file found in either currrent directory
s%   or in the IPython config. directory: s#   
Proceeding with internal defaults.s   trap_outs   >>> s   ... s   Plains
   history-%ss   historys    appends   EDITORs   vis   notepad(   s   deep_reloads8   Trying to execute the following configuration structure:s=   (Things listed first are deeper in the inclusion tree and gets   loaded first).
s   import s   ,s   from s    import s	    import *s   Failure executing code: s"   File $file not found. Skipping it.s"   Could not import 'ipy_system_conf's   ipy_system_confs   ipy_profile_s   Error importings"   - perhaps you should run %upgrade?s   ipy_profile_nones   ipy_user_confs   /ipy_user_conf.pys%    does not exist, please run %upgrade!s   Replaying log...s   islogs   Problems replaying logfile %s.s   .ipys   __name__s   __main__s   \ns   IPython profile: %s
(»   s   Falses   DEVDEBUGs   argvs   Nones   syss   shell_classs   user_nss   user_global_nss   embeddeds   kws   IPs   sites   _Helpers   ImportErrors   warns   user_config_nss   IPythons   ultraTBs	   VerboseTBs
   excepthooks   versions   splits   __version__s   BANNER_PARTSs   interactive_usages   usages   oss   names	   rc_suffixs	   ipdir_defs   paths   abspaths   environs   gets   joins   home_dirs   ipythondir_defs   inserts   dirnames   __file__s   IPython_dirs   cmdline_optss   cmdline_onlys   qws
   opts_namess   Structs   opts_defs   qwflats   qw_lols   list_stringss   rcfile_optss   rc_defs   copys   typeconvs   updates   optstr2typess   unquote_endss   opts_alls   ints   conflicts	   DPyGetOpts   getopts   setIgnoreCases   parseConfigurations   processArgumentss   ArgumentErrors   excs   cmd_line_usages   exits   optionValuess   optss
   freeValuess   argss   helps   pages   Versions   magic_docstringss   magic_magics   appends
   ipythondirs   isdirs
   user_setups   upgrades
   mutex_optss   load_logplays   logplays   debugs   opts_debug_saves   opens   IOErrors   InteractiveTBs   readlines   cmds   closes   msg_outs   msg_errs   msg_seps
   OutputTraps   msgs   configs   trap_alls   filefinds   rcfiles   profile_handled_by_legacys   profiles   Trues
   rcfiledatas   quicks   ConfigLoaders
   cfg_loaders   loads   otraps   magic_xmodes   xmodes   release_outs   rcs   IP_rcs   rc_overrides
   runtime_rcs   classics
   cache_sizes   pprints
   prompt_in1s
   prompt_in2s
   prompt_outs   separate_ins   separate_outs   separate_out2s   colorss   pre_config_initializations	   histfnames   histfiles   trap_outs   magic_logstarts   logfiles   logs   editors   strips   eds   KeyErrors   deep_reloads   reloads   __builtin__s   dreloads   internal_nss   __main__s   __dict__s
   import_mods   mods   import_fail_infos   import_somes   mod_fns   fns
   import_alls   executes   codes   execfiles   files   itpls   safe_execfiles
   expandusers   ipy_system_confs   profmodnames   force_imports   confs   isfiles   release_alls   messagess   summarys   summary_alls   logplay_quiets	   user_execs   lowers   endswiths	   name_saves   old_excepthooks	   save_argvs   noseps   replaces   counts   num_lines_bots   screen_lengths   cs   banners   BANN_Ps   BANNERs   post_config_initialization(<   s   argvs   user_nss   user_global_nss   debugs   rc_overrides   shell_classs   embeddeds   kws   codes	   save_argvs
   cfg_loaders	   histfnames   msg_errs   mods   cmds   old_excepthooks   rc_defs
   opts_namess   eds	   rc_suffixs   cmdline_onlys	   name_saves   msg_seps   msg_outs   confs   argss   ultraTBs   DEVDEBUGs   num_lines_bots   BANN_Ps   opts_defs
   rcfiledatas   opts_alls   IPython_dirs   IPythons   profile_handled_by_legacys   logplays   deep_reloads   opts_debug_saves   fns   msgs   otraps	   ipdir_defs   cmdline_optss   logplay_quiets   typeconvs   mod_fns   ipythondir_defs   files   load_logplays   getopts   conflicts   _Helpers   IPs   ipy_system_confs   rcfile_optss   excs   optss   profmodnames   IP_rc(    (    s?   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/ipmaker.pys   make_IPythonF   s
    
	0	
		
*		M	




1
		
 

		

 		
 


 
	
	

			
							










 

 #

 

 

 #
 







 0	 	


   


 
 
(&   s   __doc__s   IPythons   Releases   authorss
   __author__s   licenses   __license__s   versions   __version__s   creditss   _Printer__datas	   copyrights	   NameErrors   __main__s   __builtin__s   oss   res   syss   typess   pprints   pformats	   DPyGetOpts   IPython.ipstructs   Structs   IPython.OutputTraps
   OutputTraps   IPython.ConfigLoaders   ConfigLoaders   IPython.iplibs   InteractiveShells   IPython.usages   cmd_line_usages   interactive_usages   IPython.genutilss   force_imports   Nones   Falses   make_IPython(   s   interactive_usages   __builtin__s   __main__s   Structs   pprints   res   __version__s	   DPyGetOpts   __license__s
   __author__s   syss   Releases   typess   force_imports   make_IPythons   InteractiveShells   ConfigLoaders
   OutputTraps   pformats   cmd_line_usages   os(    (    s?   /nyx/web/d/b/dbachman/work/src/ipython-0.8.4/IPython/ipmaker.pys   ?	   s2   											