-í
ç¶<c    	   s  d  Z  d k Z e i Z e Z d d d d d d d d	 g Z d
 „  Z d e j o d Z d Z	 d Z
 d Z d Z d Z d Z d k Ty d k l Z Wn e j
 o n Xd k Z e Z [ d k Z e i e e ƒ ƒ [ nÌd e j o  d Z d Z	 d Z
 d Z d Z d Z d Z d k Tx7 d g D], Z y d e d UWn e j
 o n Xq'Wd k Z e Z [ d k Z e i e e ƒ ƒ [ nd e j o d Z d Z	 d Z
 d Z d Z d Z d Z d k Ty d k l Z Wn e j
 o n Xd k Z e Z [ d k Z e i e e ƒ ƒ [ n…d e j o d Z d Z	 d Z
 d Z d Z d Z d Z d k Ty d k l Z Wn e j
 o n Xd k Z e Z [ d k Z e i e e ƒ ƒ [ nëd e j o d Z d Z	 d Z
 d Z d Z d Z d Z d k Ty d k l Z Wn e j
 o n Xd k Z e Z [ d k Z e i e e ƒ ƒ [ nQd  e j o  d  Z d Z	 d Z
 d Z d Z d Z d! Z d k Tx7 d g D], Z y d" e d UWn e j
 o n Xq¢Wd k Z e Z [ d k Z e i e e ƒ ƒ [ n¤ d# e j o d# Z d Z	 d$ Z
 d% Z d Z d& Z d' Z d k Ty d k l Z Wn e j
 o n Xd k Z e Z [ d k Z e i e e ƒ ƒ [ n
 e d( ‚ e d j o
 d Z  n d Z  e i! d) ƒ [ e e i" d* <d+ d, „ Z# d- „  Z$ d. „  Z% e i d/ d0 d1 g ƒ y e& Wn e' j
 o h  Z& n Xd2 „  Z( d3 „  Z) d4 „  Z* d5 „  Z+ d6 „  Z, d7 „  Z- e i d8 d9 d: d; d< d= g ƒ e a. e d> „ Z/ y e0 Wn e' j
 o n½ Xd k1 Z1 e d d d f j o d? „  Z2 n e d# j o d@ k3 l4 Z4 nM e d d d f j o dA e1 i1 f dB „  ƒ  YZ4 n dA e1 i1 f dC „  ƒ  YZ4 e4 e& ƒ Z& e dD „ Z5 e i! dE ƒ dF „  Z6 e6 dG ƒ o e6 dH ƒ o
 e6 dI ƒ oA dJ Z7 dK Z8 Z9 dL „  Z: dM „  Z; dN „  Z< dO „  Z= dP „  Z> n e6 dH ƒ o dQ „  Z? dR „  Z@ n e6 dS ƒ o; dT „  ZA dU „  ZB e i dV dW dH dX dS dY dZ d[ g ƒ n e6 dG ƒ oŽ e6 d\ ƒ o  d] d^ d_ „ ZC e i! d\ ƒ n e6 d` ƒ o  d] d^ da „ ZD e i! d` ƒ n e6 db ƒ o  d] d^ dc „ ZE e i! db ƒ n n d kF ZG dd „  ZH de „  ZI y eG iJ eK eI eH ƒ Wn e' j
 o n Xdf „  ZL dg „  ZM y eG iJ eN eM eL ƒ Wn e' j
 o n Xd S(h   sk  OS routines for Mac, DOS, NT, or Posix depending on what system we're on.

This exports:
  - all functions from posix, nt, dos, os2, mac, or ce, e.g. unlink, stat, etc.
  - os.path is one of the modules posixpath, ntpath, macpath, or dospath
  - os.name is 'posix', 'nt', 'dos', 'os2', 'mac', 'ce' or 'riscos'
  - os.curdir is a string representing the current directory ('.' or ':')
  - os.pardir is a string representing the parent directory ('..' or '::')
  - os.sep is the (or a most common) pathname separator ('/' or ':' or '\\')
  - os.extsep is the extension separator ('.' or '/')
  - os.altsep is the alternate pathname separator (None or '/')
  - os.pathsep is the component separator used in $PATH etc
  - os.linesep is the line separator in text files ('\r' or '\n' or '\r\n')
  - os.defpath is the default search path for executables

Programs that import and use 'os' stand a better chance of being
portable between different platforms.  Of course, they must then
only use functions that are defined by all platforms (e.g., unlink
and opendir), and leave all pathname manipulation to os.path
(e.g., split and join).
Ns   altseps   curdirs   pardirs   seps   pathseps   lineseps   defpaths   namec    sk   y t  |  i ƒ SWnS t j
 oG g  i } t |  ƒ D]% } | d d j o | | ƒ n q6 ~ Sn Xd  S(   Ni    s   _(   s   lists   modules   __all__s   AttributeErrors   appends   _[1]s   dirs   n(   s   modules   _[1]s   n(    (    s   /usr/lib/python2.2/os.pys   _get_exports_list" s      s   posixs   
s   .s   ..s   /s   :s   :/bin:/usr/bin(   s   *(   s   _exits   nts   
s   \s   ;s   .;C:\bins   _exits   from nt import s   doss   os2s   macs   s   ::s   ces   \Windowss   from ce import s   riscoss   @s   ^s   ,s	   <Run$Dir>s   no os specific module founds   paths   os.pathiÿ  c    sw   t  i |  ƒ \ } } | o t  i | ƒ \ } } n | o | o t  i | ƒ o t | | ƒ n t |  | ƒ d S(   s
  makedirs(path [, mode=0777]) -> None

    Super-mkdir; create a leaf directory and all intermediate ones.
    Works like mkdir, except that any intermediate path segment (not
    just the rightmost) will be created if it does not exist.  This is
    recursive.

    N(	   s   paths   splits   names   heads   tails   existss   makedirss   modes   mkdir(   s   names   modes   heads   tail(    (    s   /usr/lib/python2.2/os.pys   makedirs½ s     c    s”   t  |  ƒ t i |  ƒ \ } } | o t i | ƒ \ } } n xM | o | o> y t  | ƒ Wn t j
 o Pn Xt i | ƒ \ } } qC Wd S(   s³  removedirs(path) -> None

    Super-rmdir; remove a leaf directory and empty all intermediate
    ones.  Works like rmdir except that, if the leaf directory is
    successfully removed, directories corresponding to rightmost path
    segments will be pruned way until either the whole path is
    consumed or an error occurs.  Errors during this latter phase are
    ignored -- they generally mean that a directory was not empty.

    N(   s   rmdirs   names   paths   splits   heads   tails   error(   s   names   heads   tail(    (    s   /usr/lib/python2.2/os.pys
   removedirsÍ s    
 
 c    sž   t  i | ƒ \ } } | o | o t  i | ƒ o t | ƒ n t |  | ƒ t  i |  ƒ \ } } | o | o( y t	 | ƒ Wn t
 j
 o n Xn d S(   sH  renames(old, new) -> None

    Super-rename; create directories as necessary and delete any left
    empty.  Works like rename, except creation of any intermediate
    directories needed to make the new pathname good is attempted
    first.  After the rename, directories corresponding to rightmost
    path segments of the old name will be pruned way until either the
    whole path is consumed or a nonempty directory is found.

    Note: this function can fail with the new directory structure made
    if you lack permissions needed to unlink the leaf directory or
    file.

    N(   s   paths   splits   news   heads   tails   existss   makedirss   renames   olds
   removedirss   error(   s   olds   news   heads   tail(    (    s   /usr/lib/python2.2/os.pys   renamesã s     s   makedirss
   removedirss   renamesc    s   t  |  | ƒ d S(   sp   execl(file, *args)

    Execute the executable file with argument list args, replacing the
    current process. N(   s   execvs   files   args(   s   files   args(    (    s   /usr/lib/python2.2/os.pys   execls     c    s"   | d } t |  | d  | ƒ d S(   sŠ   execle(file, *args, env)

    Execute the executable file with argument list args and
    environment env, replacing the current process. iÿÿÿÿN(   s   argss   envs   execves   file(   s   files   argss   env(    (    s   /usr/lib/python2.2/os.pys   execles     
c    s   t  |  | ƒ d S(   s•   execlp(file, *args)

    Execute the executable file (which is searched for along $PATH)
    with argument list args, replacing the current process. N(   s   execvps   files   args(   s   files   args(    (    s   /usr/lib/python2.2/os.pys   execlps     c    s"   | d } t |  | d  | ƒ d S(   s³   execlpe(file, *args, env)

    Execute the executable file (which is searched for along $PATH)
    with argument list args and environment env, replacing the current
    process. iÿÿÿÿN(   s   argss   envs   execvpes   file(   s   files   argss   env(    (    s   /usr/lib/python2.2/os.pys   execlpes     
c    s   t  |  | ƒ d S(   s¿   execp(file, args)

    Execute the executable file (which is searched for along $PATH)
    with argument list args, replacing the current process.
    args may be a list or tuple of strings. N(   s   _execvpes   files   args(   s   files   args(    (    s   /usr/lib/python2.2/os.pys   execvp$s     c    s   t  |  | | ƒ d S(   sÝ   execv(file, args, env)

    Execute the executable file (which is searched for along $PATH)
    with argument list args and environment env , replacing the
    current process.
    args may be a list or tuple of strings. N(   s   _execvpes   files   argss   env(   s   files   argss   env(    (    s   /usr/lib/python2.2/os.pys   execvpe,s     s   execls   execles   execlps   execlpes   execvps   execvpec    sÓ  | t j	 o t } | | f }
 n t } | f }
 t } t i	 |  ƒ \ } } | o t | |  f |
 ƒ d  Sn | i d ƒ o | d } n t } | i	 t ƒ } t oƒ t i d  d j o* y t d ƒ Wn t j
 o	 a n XnB d  k }	 |	 i ƒ  } y t | d f ƒ Wn t j
 o	 a n Xn t t f \ } } xƒ | D]{ } t i | |  ƒ } y t | | f |
 ƒ WnH t j
 o< \ } } | | d j o t | | f f \ } } n n XqGW| | ‚ d  S(   Ns   PATHi   s   beoss   /_#.# ## #.#s   blahi    ("   s   envs   Nones   execves   funcs   argss   argrests   execvs   environs   paths   splits   files   heads   tails   applys   has_keys   envpaths   defpaths   pathseps   PATHs	   _notfounds   syss   platforms   unlinks   errors   tempfiles   mktemps   ts   excs   args   dirs   joins   fullnames   errnos   msg(   s   files   argss   envs   heads   msgs   funcs   PATHs   args   excs   tempfiles   argrests   fullnames   tails   ts   errnos   dirs   envpath(    (    s   /usr/lib/python2.2/os.pys   _execvpe8sJ    	   		  	 %c    s   t  |  d ƒ d  S(   Ns    (   s   putenvs   key(   s   key(    (    s   /usr/lib/python2.2/os.pys   unsetenvqs    (   s   _Environs   _Environc      sq   t  Z d „  Z d „  Z d „  Z y e Wn e j
 o d „  Z n Xd „  Z d „  Z e	 d „ Z
 d „  Z RS(	   Nc    sJ   t  i  i |  ƒ |  i } x* | i ƒ  D] \ } } | | | i ƒ  <q& Wd  S(   N(	   s   UserDicts   __init__s   selfs   datas   environs   itemss   ks   vs   upper(   s   selfs   environs   vs   datas   k(    (    s   /usr/lib/python2.2/os.pys   __init__zs
    	 c    s$   t  | | ƒ | |  i | i ƒ  <d  S(   N(   s   putenvs   keys   items   selfs   datas   upper(   s   selfs   keys   item(    (    s   /usr/lib/python2.2/os.pys   __setitem__s    c    s   |  i | i ƒ  Sd  S(   N(   s   selfs   datas   keys   upper(   s   selfs   key(    (    s   /usr/lib/python2.2/os.pys   __getitem__‚s    c    s   |  i | i ƒ  =d  S(   N(   s   selfs   datas   keys   upper(   s   selfs   key(    (    s   /usr/lib/python2.2/os.pys   __delitem__‡s    c    s   t  | ƒ |  i | i ƒ  =d  S(   N(   s   unsetenvs   keys   selfs   datas   upper(   s   selfs   key(    (    s   /usr/lib/python2.2/os.pys   __delitem__Šs    
c    s   |  i i | i ƒ  ƒ Sd  S(   N(   s   selfs   datas   has_keys   keys   upper(   s   selfs   key(    (    s   /usr/lib/python2.2/os.pys   has_keys    c    s   |  i i | i ƒ  | ƒ Sd  S(   N(   s   selfs   datas   gets   keys   uppers   failobj(   s   selfs   keys   failobj(    (    s   /usr/lib/python2.2/os.pys   gets    c    s+   x$ | i ƒ  D] \ } } | |  | <q Wd  S(   N(   s   dicts   itemss   ks   vs   self(   s   selfs   dicts   ks   v(    (    s   /usr/lib/python2.2/os.pys   update‘s     (   s   __name__s
   __module__s   __init__s   __setitem__s   __getitem__s   unsetenvs	   NameErrors   __delitem__s   has_keys   Nones   gets   update(    (    (    s   /usr/lib/python2.2/os.pys   _Environys   					c      sJ   t  Z d „  Z d „  Z d „  Z y e Wn e j
 o n Xd „  Z RS(   Nc    s   t  i  i |  ƒ | |  _ d  S(   N(   s   UserDicts   __init__s   selfs   environs   data(   s   selfs   environ(    (    s   /usr/lib/python2.2/os.pys   __init__—s    c    s   t  | | ƒ | |  i | <d  S(   N(   s   putenvs   keys   items   selfs   data(   s   selfs   keys   item(    (    s   /usr/lib/python2.2/os.pys   __setitem__šs    c    s+   x$ | i ƒ  D] \ } } | |  | <q Wd  S(   N(   s   dicts   itemss   ks   vs   self(   s   selfs   dicts   ks   v(    (    s   /usr/lib/python2.2/os.pys   updates     c    s   t  | ƒ |  i | =d  S(   N(   s   unsetenvs   keys   selfs   data(   s   selfs   key(    (    s   /usr/lib/python2.2/os.pys   __delitem__¥s    
(   s   __name__s
   __module__s   __init__s   __setitem__s   updates   unsetenvs	   NameErrors   __delitem__(    (    (    s   /usr/lib/python2.2/os.pys   _Environ–s   			c    s   t  i |  | ƒ Sd S(   s„   Get an environment variable, return None if it doesn't exist.
        The optional second argument can specify an alternate default.N(   s   environs   gets   keys   default(   s   keys   default(    (    s   /usr/lib/python2.2/os.pys   getenv¬s     s   getenvc    s0   y t  |  ƒ d SWn t j
 o d Sn Xd  S(   Ni   i    (   s   evals   names	   NameError(   s   name(    (    s   /usr/lib/python2.2/os.pys   _exists²s
    
s   forks   spawnvs   execvi    i   c    sì   t  ƒ  } | oJ y2 | t j o | | | ƒ n | | | | ƒ Wn t d ƒ n XnŽ |  t	 j o | Sn xu d om t
 | d ƒ \ } } t | ƒ o qs nA t | ƒ o t | ƒ Sn% t | ƒ o t | ƒ Sn
 t d ‚ qs Wd  S(   Ni   i   i    s"   Not stopped, signaled or exited???(   s   forks   pids   envs   Nones   funcs   files   argss   _exits   modes   P_NOWAITs   waitpids   wpids   stss
   WIFSTOPPEDs   WIFSIGNALEDs   WTERMSIGs	   WIFEXITEDs   WEXITSTATUSs   error(   s   modes   files   argss   envs   funcs   wpids   pids   sts(    (    s   /usr/lib/python2.2/os.pys	   _spawnvefÃs(    	 c    s   t  |  | | t t ƒ Sd S(   s  spawnv(mode, file, args) -> integer

Execute file with arguments from args in a subprocess.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. N(   s	   _spawnvefs   modes   files   argss   Nones   execv(   s   modes   files   args(    (    s   /usr/lib/python2.2/os.pys   spawnvÞs     c    s   t  |  | | | t ƒ Sd S(   s:  spawnve(mode, file, args, env) -> integer

Execute file with arguments from args in a subprocess with the
specified environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. N(   s	   _spawnvefs   modes   files   argss   envs   execve(   s   modes   files   argss   env(    (    s   /usr/lib/python2.2/os.pys   spawnveçs     c    s   t  |  | | t t ƒ Sd S(   s8  spawnvp(mode, file, args) -> integer

Execute file (which is looked for along $PATH) with arguments from
args in a subprocess.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. N(   s	   _spawnvefs   modes   files   argss   Nones   execvp(   s   modes   files   args(    (    s   /usr/lib/python2.2/os.pys   spawnvpós     c    s   t  |  | | | t ƒ Sd S(   s\  spawnvpe(mode, file, args, env) -> integer

Execute file (which is looked for along $PATH) with arguments from
args in a subprocess with the supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. N(   s	   _spawnvefs   modes   files   argss   envs   execvpe(   s   modes   files   argss   env(    (    s   /usr/lib/python2.2/os.pys   spawnvpeýs     c    s   t  |  | | ƒ Sd S(   s  spawnl(mode, file, *args) -> integer

Execute file with arguments from args in a subprocess.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. N(   s   spawnvs   modes   files   args(   s   modes   files   args(    (    s   /usr/lib/python2.2/os.pys   spawnls     c    s%   | d } t |  | | d  | ƒ Sd S(   s:  spawnle(mode, file, *args, env) -> integer

Execute file with arguments from args in a subprocess with the
supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. iÿÿÿÿN(   s   argss   envs   spawnves   modes   file(   s   modes   files   argss   env(    (    s   /usr/lib/python2.2/os.pys   spawnles     
s   spawnvpc    s   t  |  | | ƒ Sd S(   s\  spawnlp(mode, file, *args, env) -> integer

Execute file (which is looked for along $PATH) with arguments from
args in a subprocess with the supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. N(   s   spawnvps   modes   files   args(   s   modes   files   args(    (    s   /usr/lib/python2.2/os.pys   spawnlp"s     c    s%   | d } t |  | | d  | ƒ Sd S(   s]  spawnlpe(mode, file, *args, env) -> integer

Execute file (which is looked for along $PATH) with arguments from
args in a subprocess with the supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. iÿÿÿÿN(   s   argss   envs   spawnvpes   modes   file(   s   modes   files   argss   env(    (    s   /usr/lib/python2.2/os.pys   spawnlpe,s     
s   spawnlps   spawnlpes   spawnves   spawnvpes   spawnls   spawnles   popen2s   tiÿÿÿÿc    s/   d  k  } | i  |  | ƒ \ } } | | f Sd  S(   N(   s   popen2s   cmds   bufsizes   stdouts   stdin(   s   cmds   modes   bufsizes   stdouts   popen2s   stdin(    (    s   /usr/lib/python2.2/os.pys   popen2?s    	s   popen3c    s5   d  k  } | i |  | ƒ \ } } } | | | f Sd  S(   N(   s   popen2s   popen3s   cmds   bufsizes   stdouts   stdins   stderr(   s   cmds   modes   bufsizes   stderrs   stdouts   popen2s   stdin(    (    s   /usr/lib/python2.2/os.pys   popen3Fs    	s   popen4c    s/   d  k  } | i |  | ƒ \ } } | | f Sd  S(   N(   s   popen2s   popen4s   cmds   bufsizes   stdouts   stdin(   s   cmds   modes   bufsizes   stdouts   popen2s   stdin(    (    s   /usr/lib/python2.2/os.pys   popen4Ms    	c    s   t  |  | ƒ Sd  S(   N(   s   stat_results   tups   dict(   s   tups   dict(    (    s   /usr/lib/python2.2/os.pys   _make_stat_resultUs    c    s    |  i ƒ  \ } } t | f Sd  S(   N(   s   srs
   __reduce__s   types   argss   _make_stat_result(   s   srs   argss   type(    (    s   /usr/lib/python2.2/os.pys   _pickle_stat_resultXs    c    s   t  |  | ƒ Sd  S(   N(   s   statvfs_results   tups   dict(   s   tups   dict(    (    s   /usr/lib/python2.2/os.pys   _make_statvfs_resultas    c    s    |  i ƒ  \ } } t | f Sd  S(   N(   s   srs
   __reduce__s   types   argss   _make_statvfs_result(   s   srs   argss   type(    (    s   /usr/lib/python2.2/os.pys   _pickle_statvfs_resultds    (O   s   __doc__s   syss   builtin_module_namess   _namess   Nones   altseps   __all__s   _get_exports_lists   names   lineseps   curdirs   pardirs   seps   pathseps   defpaths   posixs   _exits   ImportErrors	   posixpaths   paths   extends   nts   is   ntpaths   doss   dospaths   os2s   macs   macpaths   ces   riscoss
   riscospaths   extseps   appends   moduless   makedirss
   removedirss   renamess   environs	   NameErrors   execls   execles   execlps   execlpes   execvps   execvpes	   _notfounds   _execvpes   putenvs   UserDicts   unsetenvs   riscosenvirons   _Environs   getenvs   _existss   P_WAITs   P_NOWAITs	   P_NOWAITOs	   _spawnvefs   spawnvs   spawnves   spawnvps   spawnvpes   spawnls   spawnles   spawnlps   spawnlpes   popen2s   popen3s   popen4s   copy_regs	   _copy_regs   _make_stat_results   _pickle_stat_results   pickles   stat_results   _make_statvfs_results   _pickle_statvfs_results   statvfs_result(@   s   pardirs   popen2s   seps   _get_exports_lists   popen4s   macpaths   execles   popen3s   ces   altseps   defpaths   spawnlps   execlps   spawnvps   _pickle_stat_results   dospaths	   posixpaths   __all__s   riscoss   makedirss   pathseps   lineseps   _execvpes   ntpaths   spawnves   posixs   nts   P_WAITs   curdirs
   riscospaths   _existss   _namess   execvpes   unsetenvs   UserDicts   os2s   getenvs   syss   macs   _Environs   doss   paths	   _spawnvefs   _exits   spawnles   spawnls   execls   _make_stat_results   names   renamess   spawnlpes   is   _make_statvfs_results	   P_NOWAITOs	   _copy_regs   environs   P_NOWAITs
   removedirss   _pickle_statvfs_results   extseps   execvps   spawnvs   spawnvpes   execlpe(    (    s   /usr/lib/python2.2/os.pys   ? s  					
 									
 						
										,		(
					

			
	)					