™N
øùO5c       sI  d  Z  k Z k Z 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 oB e i
 i e d d e i d  d ƒ e i
 i e d d	 ƒ g Z n
 e g Z x1 e d r' Z e i
 i e ƒ o e e ƒ n qÑ Wn q` Wy
 k Z Wn e j
 o n Xd
 „  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/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.

c    s­   |  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   sitedirs   syss   paths   appends   oss   listdirs   namess   errors   maps   normcases   sorts   names
   addpackage(   s   sitedirs   namess   names.   /var/tmp/python-root/usr/lib/python1.5/site.pys
   addsitedir> 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  i i |  | ƒ } | 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   syss   existss   append(   s   sitedirs   names   fullnames   fs   dirs.   /var/tmp/python-root/usr/lib/python1.5/site.pys
   addpackageK s"    	 #i    s   /s   libs   pythoni   s   site-packagess   site-pythonc     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.   /var/tmp/python-root/usr/lib/python1.5/site.pys   _tests s
     s   __main__N(   s   __doc__s   syss   oss
   addsitedirs
   addpackages   prefixs   prefixess   exec_prefixs   appends   seps   paths   joins   versions   sitedirss   sitedirs   isdirs   sitecustomizes   ImportErrors   _tests   __name__(    s.   /var/tmp/python-root/usr/lib/python1.5/site.pys   ?: s.   			 B		 
	