ACC SHELL

Path : /usr/lib/python/
File Upload :
Current File : //usr/lib/python/ntpath.pyc

Ñò
oÄMc*@s6dZddkZddkZddkZddkZddkZddkTdddddd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'g$Zd(Zd)Zd(Z	d*Z
d+Zd,Zd-Z
d.eijo
d/Z
nd0eijo
d,Znd1Zd2„Zd3„Zd4„Zd5„Zd6„Zd7„Zd8„Zeiie_d9„Zd:„Zd;„ZeZd<„Zd=„Zd>„Zd?„Z d@„Z!yddAk"l#Z#Wne$j
odB„Z%nXdC„Z%e%Z&e'edDƒoei(ƒdEdFjZ)edG„Z*dS(HsCommon pathname manipulations, WindowsNT/95 version.

Instead of importing this module directly, import os and refer to this
module as os.path.
iÿÿÿÿN(t*tnormcasetisabstjoint
splitdrivetsplittsplitexttbasenametdirnametcommonprefixtgetsizetgetmtimetgetatimetgetctimetislinktexiststlexiststisdirtisfiletismounttwalkt
expandusert
expandvarstnormpathtabspathtsplitunctcurdirtpardirtseptpathseptdefpathtaltseptextseptdevnulltrealpathtsupports_unicode_filenamestrelpatht.s..s\t;t/s.;C:\bintces\Windowstos2tnulcCs|iddƒiƒS(saNormalize case of pathname.

    Makes all characters lowercase and all slashes into backslashes.R's\(treplacetlower(ts((s/usr/lib/python2.6/ntpath.pyR*scCs+t|ƒd}|djo|d djS(sTest whether a path is absoluteits/\(R(R-((s/usr/lib/python2.6/ntpath.pyR7scGs‘|}x„|D]|}d}|djo
d}n…t|ƒow|dd!djp|dd!djo
d}q´t|ƒdjp$t|ƒdjo|ddjo
d}q´n|o
|}q
t|ƒdjpt‚|ddjo8|o#|ddjo||d7}q‰||7}q
|ddjo||7}q
|o1|ddjo||7}q‰|d	|7}q
|d	7}q
W|S(
sœJoin two or more pathname components, inserting "\" as needed.
    If any component is an absolute path, all previous path components
    will be discarded.iR.iit:iiÿÿÿÿs/\s\(RtlentAssertionError(tatptpathtbtb_wins((s/usr/lib/python2.6/ntpath.pyR?s6


	(
&
cCs4|dd!djo|dd!|dfSd|fS(slSplit a pathname into drive and path specifiers. Returns a 2-tuple
"(drive,path)";  either part may be emptyiiR/iR.((R3((s/usr/lib/python2.6/ntpath.pyRzscCsÌ|dd!djod|fS|dd!}|djp
|djo|t|ƒ}|iddƒ}|d	jod|fS|id|dƒ}|d	jot|ƒ}n|| ||fSd|fS(
s@Split a pathname into UNC mount point and relative path specifiers.

    Return a 2-tuple (unc, rest); either part may be empty.
    If unc is not empty, it has the form '//host/mount' (or similar
    using backslashes).  unc+rest is always the input path.
    Paths containing drive letters never have an UNC part.
    iiR/R.is//s\\s\iÿÿÿÿ(RtfindR0(R3tfirstTwotnormptindex((s/usr/lib/python2.6/ntpath.pyRƒs


cCs¬t|ƒ\}}t|ƒ}x+|o#||ddjo|d}q!W|| ||}}|}x'|o|ddjo|d }qjW|p|}|||fS(s~Split a pathname.

    Return tuple (head, tail) where tail is everything after the final slash.
    Either part may be empty.is/\iÿÿÿÿ(RR0(R3tdtitheadttailthead2((s/usr/lib/python2.6/ntpath.pyR¤s
cCsti|tttƒS(N(tgenericpatht	_splitextRRR (R3((s/usr/lib/python2.6/ntpath.pyR½scCst|ƒdS(s)Returns the final component of a pathnamei(R(R3((s/usr/lib/python2.6/ntpath.pyRÄscCst|ƒdS(s-Returns the directory component of a pathnamei(R(R3((s/usr/lib/python2.6/ntpath.pyRËscCstS(sNTest for symbolic link.
    On WindowsNT/95 and OS/2 always returns false
    (tFalse(R4((s/usr/lib/python2.6/ntpath.pyRÒscCsUt|ƒ\}}|o|djSt|ƒd}t|ƒdjo|ddjS(s?Test whether a path is a mount point (defined as root of drive)R.R's\iis/\(R.R's\(RRR0(R4tunctrestR3((s/usr/lib/python2.6/ntpath.pyRÞs
cCs•tidddƒyti|ƒ}Wntij
odSX||||ƒx>|D]6}t||ƒ}t|ƒot|||ƒqWqWWdS(sIDirectory tree walk with callback function.

    For each directory in the directory tree rooted at top (including top
    itself, but excluding '.' and '..'), call func(arg, dirname, fnames).
    dirname is the name of the directory, and fnames a list of the names of
    the files and subdirectories in dirname (excluding '.' and '..').  func
    may modify the fnames list in-place (e.g. via del or slice assignment),
    and walk will only recurse into the subdirectories whose names remain in
    fnames; this can be used to implement a filter, or to impose a specific
    order of visiting.  No semantics are defined for, or required of, arg,
    beyond that arg is always passed to func.  It can be used, e.g., to pass
    a filename pattern, or a mutable object designed to accumulate
    statistics.  Passing None for arg is common.s4In 3.x, os.path.walk is removed in favor of os.walk.t
stackleveliN(twarningstwarnpy3ktostlistdirterrorRRR(ttoptfunctargtnamestname((s/usr/lib/python2.6/ntpath.pyRïs
c	Cs,|d djo|Sdt|ƒ}}x-||jo||djo|d}q,Wdtijotid}nzdtijotid}nYdtijo|Sytid}Wntj
o
d}nXt|tidƒ}|djo tt|ƒ|d|!ƒ}n|||S(	sLExpand ~ and ~user constructs.

    If user or $HOME is unknown, do nothing.it~s/\tHOMEtUSERPROFILEtHOMEPATHt	HOMEDRIVER.(R0RHtenvirontKeyErrorRR(R4R<tntuserhometdrive((s/usr/lib/python2.6/ntpath.pyRs(
 cCs¤d|jod|jo|Sddk}|i|id}d}d}t|ƒ}xF||jo8||}|djoq||d	}t|ƒ}y)|idƒ}|d||d	 }Wq‘tj
o||}|d	}q‘Xn£|djoÔ||d	|d
!djo||}|d	}q‘||d	}t|ƒ}y|idƒ}Wn+tj
o|d|}|d	}q‘X|| }|tijo|ti|}q‘|d|d}nÂ|djoª||d	|d
!djo||}|d	}q‘||d	|d
!djo ||d
}t|ƒ}yT|idƒ}|| }|tijo|ti|}n|d
|d}Wqƒtj
o|d
|}|d	}qƒXq‘d}|d	}|||d	!}xD|djo6||jo)||}|d	}|||d	!}qñW|tijo|ti|}n|d|}|djo|d	}q‘n||}|d	}qZW|S(sfExpand shell variables of the forms $var, ${var} and %var%.

    Unknown variables are left unchanged.t$t%iÿÿÿÿNs_-R.is'iit{t}s${(tstringt
ascii_letterstdigitsR0R:t
ValueErrorRHRU(R4R^tvarcharstresR:tpathlentctvar((s/usr/lib/python2.6/ntpath.pyR=s„














cCsÃt|tƒod
nd\}}|iddƒ}t|ƒ\}}|djo1x[|d djo||}|d}qWWn.|idƒo||}|idƒ}n|idƒ}d}xÇ|t|ƒjo³||djo||=qÊ||d	jox|djo5||dd	jo ||d|d5|d8}qŒ|djo|idƒo||=qŒ|d7}qÊ|d7}qÊW|o|o|i	|ƒn||i
|ƒS(
s0Normalize path, eliminating double slashes, etc.u\u.s\R%R'R.iis..(u\u.(s\R%(R%R.(t
isinstancetunicodeR+Rt
startswithtlstripRR0tendswithtappendR(R4t	backslashtdottprefixtcompsR<((s/usr/lib/python2.6/ntpath.pyRŽs8#



"(t_getfullpathnamecCsVt|ƒp?t|tƒotiƒ}n
tiƒ}t||ƒ}nt|ƒS(s&Return the absolute version of a path.(RRgRhRHtgetcwdutgetcwdRR(R4tcwd((s/usr/lib/python2.6/ntpath.pyRÁs
cCsg|o*yt|ƒ}Wq]tj
oq]Xn-t|tƒotiƒ}n
tiƒ}t|ƒS(s&Return the absolute version of a path.(RqtWindowsErrorRgRhRHRrRsR(R4((s/usr/lib/python2.6/ntpath.pyRÌs	tgetwindowsversioniic	Csj|ptdƒ‚nt|ƒitƒ}t|ƒitƒ}|diƒ|diƒjowt|ƒ\}}t|ƒ\}}t|ƒt|ƒAotd||fƒ‚qÙtd|d|dfƒ‚nxYttt	|ƒt	|ƒƒƒD],}||iƒ||iƒjoPqûqûW|d7}t
gt	|ƒ|||}|ptSt|ŒS(s#Return a relative version of a pathsno path specifiedis,Cannot mix UNC and non-UNC paths (%s and %s)s&path is on drive %s, start on drive %si(
RaRRRR,RtbooltrangetminR0RRR(	R4tstartt
start_listt	path_listtunc_pathRDt	unc_startR<trel_list((s/usr/lib/python2.6/ntpath.pyR$às*!"!	
(+t__doc__RHtsyststatR@RFt__all__RRR RRRRtbuiltin_module_namesR!RRRRRRRRARRRRRRRRRRtntRqtImportErrorRR"thasattrRvR#R$(((s/usr/lib/python2.6/ntpath.pyt<module>sd


	
		;			!							$	*	Q	/	

ACC SHELL 2018