Ζ
Nφ9c    	   s  d  Z  d k Z d k Z d   Z e i i   Z x6 e d r, Z e e d  o e e i	  e _	 n q9 W[ [ g  Z x= e i
 d r0 Z e e  Z e e j o e i e  n q We e i
 ([ [ d   Z d   Z e i g Z e i e i j o e i e i  n x e d r Z e o e i d j o6 e e d d	 e i d
  d  e e d d  g Z n
 e g Z x1 e d r' Z e i
 i e  o e e  n qxWn qWe i d j o
 d Z n! e i d j o
 d Z n d Z d k Z e e _ e _ [ d f  d     YZ e d e i  e _ e d d  e _ e i
 i e i	  Z e d d d d g e e i
 i e e i   e i! g  e _" d Z# e# d j o e i$ e#  n y d k% Z% Wn e& j
 o n Xe e d  o
 e `$ n d   Z' e( d j o e'   n d S(   s	  Append module search paths for third-party packages to sys.path.

****************************************************************
* This module is automatically imported during initialization. *
****************************************************************

In earlier versions of Python (up to 1.5a3), scripts or modules that
needed to use site-specific modules would place ``import site''
somewhere near the top of their code.  Because of the automatic
import, this is no longer necessary (but code that does it still
works).

This will append site-specific paths to to the module search path.  On
Unix, it starts with sys.prefix and sys.exec_prefix (if different) and
appends lib/python<version>/site-packages as well as lib/site-python.
On other platforms (mainly Mac and Windows), it uses just sys.prefix
(and sys.exec_prefix, if different, but this is unlikely).  The
resulting directories, if they exist, are appended to sys.path, and
also inspected for path configuration files.

A path configuration file is a file whose name has the form
<package>.pth; its contents are additional directories (one per line)
to be added to sys.path.  Non-existing directories (or
non-directories) are never added to sys.path; no directory is added to
sys.path more than once.  Blank lines and lines beginning with
\code{#} are skipped.

For example, suppose sys.prefix and sys.exec_prefix are set to
/usr/local and there is a directory /usr/local/lib/python1.5/site-packages
with three subdirectories, foo, bar and spam, and two path
configuration files, foo.pth and bar.pth.  Assume foo.pth contains the
following:

  # foo package configuration
  foo
  bar
  bletch

and bar.pth contains:

  # bar package configuration
  bar

Then the following directories are added to sys.path, in this order:

  /usr/local/lib/python1.5/site-packages/bar
  /usr/local/lib/python1.5/site-packages/foo

Note that bletch is omitted because it doesn't exist; bar precedes foo
because bar.pth comes alphabetically before foo.pth; and spam is
omitted because it is not mentioned in either path configuration file.

After these path manipulations, an attempt is made to import a module
named sitecustomize, which can perform arbitrary additional
site-specific customizations.  If this import fails with an
ImportError exception, it is silently ignored.

Nc     s2   t  i i |    } t  i i t  i i |   Sd  S(   N(   s   oss   paths   joins   pathss   dirs   normcases   abspath(   s   pathss   dirs!   /mit/python/lib/python2.0/site.pys   makepath> s    i    s   __file__c    sΉ   t  |   }  |  t i j o t i i |   n y t i |   } Wn t i j
 o d  Sn Xt	 t i i
 |  } | i   x3 | d r) } | d d j o t |  |  n q Wd  S(   Ni    i   s   .pth(   s   makepaths   sitedirs   syss   paths   appends   oss   listdirs   namess   errors   maps   normcases   sorts   names
   addpackage(   s   sitedirs   namess   names!   /mit/python/lib/python2.0/site.pys
   addsitedirR s    	
	 c    sκ   t  i i |  |  } y t |  } Wn t j
 o d  Sn Xx€ d o | i	   } | o Pn | d d j o qB n | d d j o | d  } n t |  |  } | t i j o t  i i |  o t i i |  n qB Wd  S(   Ni   i    s   #s   
(   s   oss   paths   joins   sitedirs   names   fullnames   opens   fs   IOErrors   readlines   dirs   makepaths   syss   existss   append(   s   sitedirs   names   fullnames   fs   dirs!   /mit/python/lib/python2.0/site.pys
   addpackage` s"    	 #s   /s   libs   pythoni   s   site-packagess   site-pythons   :s   Use Cmd-Q to quit.s   \s   Use Ctrl-Z plus Return to exit.s   Use Ctrl-D (i.e. EOF) to exit.s   _Printerc      s2   d Z  f  f  d  Z d   Z d   Z d   Z RS(   Ni   c    s1   | |  _ | |  _ | |  _ | |  _ t	 |  _
 d  S(   N(   s   names   selfs   _Printer__names   datas   _Printer__datas   filess   _Printer__filess   dirss   _Printer__dirss   Nones   _Printer__lines(   s   selfs   names   datas   filess   dirss!   /mit/python/lib/python2.0/site.pys   __init__ s
    				c  	  sί   |  i o d  Sn t } x |  i d rz } xe |  i d rX } t i	 i
 | |  } y' t |  } | i   } | i   PWn t j
 o n Xq6 W| o Pn q$ W| o |  i } n | i d  |  _ t |  i  |  _ d  S(   Ni    s   
(   s   selfs   _Printer__liness   Nones   datas   _Printer__dirss   dirs   _Printer__filess   files   oss   paths   joins   opens   fps   reads   closes   IOErrors   _Printer__datas   splits   lens   _Printer__linecnt(   s   selfs   datas   dirs   files   fps!   /mit/python/lib/python2.0/site.pys   __setup s*    
  
		c    sM   |  i   t |  i  |  i j o d i |  i  Sn d |  i f d Sd  S(   Ns   
s!   Type %s() to see the full %s texti   (   s   selfs   _Printer__setups   lens   _Printer__liness   MAXLINESs   joins   _Printer__name(   s   selfs!   /mit/python/lib/python2.0/site.pys   __repr__° s    
c    sΦ   |  i   d } d } xΉ d o± y3 x, t | | |  i  d r } |  i | GHq< WWn t j
 o Pne X| |  i 7} t	 } x; | t	 j o- t |  } | d d f j o
 t	 } n q W| d j o Pn q Wd  S(   Ns0   Hit Return for more, or q (and Return) to quit: i    i   s    s   q(   s   selfs   _Printer__setups   prompts   linenos   ranges   MAXLINESs   is   _Printer__liness
   IndexErrors   Nones   keys	   raw_input(   s   selfs   prompts   linenos   is   keys!   /mit/python/lib/python2.0/site.pys   __call__· s(    
   (   s   MAXLINESs   __init__s   _Printer__setups   __repr__s   __call__(    s!   /mit/python/lib/python2.0/site.pys   _Printer s
    		s	   copyrights   creditssD   Python development is led by BeOpen PythonLabs (www.pythonlabs.com).s   licenses=   See http://www.pythonlabs.com/products/python2.0/license.htmls   LICENSE.txts   LICENSEs   asciis   setdefaultencodingc     s.   d GHx t  i d r }  d |  GHq Wd GHd  S(   Ns   sys.path = [i    s       %s,s   ](   s   syss   paths   dir(   s   dirs!   /mit/python/lib/python2.0/site.pys   _testϊ s
     s   __main__()   s   __doc__s   syss   oss   makepaths   moduless   valuess   Ls   ms   hasattrs   __file__s   paths   dirs   appends
   addsitedirs
   addpackages   prefixs   prefixess   exec_prefixs   seps   versions   sitedirss   sitedirs   isdirs   exits   __builtin__s   quits   _Printers	   copyrights   creditss   dirnames   heres   joins   pardirs   curdirs   licenses   encodings   setdefaultencodings   sitecustomizes   ImportErrors   _tests   __name__(    s!   /mit/python/lib/python2.0/site.pys   ?: s   		  
			 		 

	:		*  
	