QfI dZddlZddlZddlZddlmZeee Z ejZ gdZ dZdZde vrIdZdZdd l dd lmZe j)d ddlZ dd lmZddlZe j3ee[nUd e vrId ZdZdd l dd lmZe j)d ddlZddlZe j3ee[ dd lmZnedeej8d<ddlmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%[ edre&Z'dZ(e)Z*e(dde(dde(dde(dde(dde(dde(d d!e(d"d#e(d$d%e(d&d'e(d(d)e(d*d+e(d,d-e(d.d/e(d.d0e(d1de*Z+e)Z*e(dde*Z,e)Z*e(d2d3e(d4de(d5de(d6d7e(d6d8e(d9d:e*j[ee(d;d<e(d=de(d>de(d?d@edAredBr e(dCdAe*Z.e)Z*e(dde(dde(dde(dDdEe(dFdedGr e(dHde(dde(dIde(dJde(dde(d1de(dKde*Z/[*[['[(dZ0dLZ1dMZ2ddOZ3dPZ4dQZ5e j3gdRe6Z7ddSZ8e j)dTe9ehe+kr)e:ehe.kr"ddNddUdVZ;dZdWZ?e j)dXdYZ@dZZAd[ZBd\ZCd]ZDd^ZEe j3gd_dd`ZFddaZGddblmHZHmIZIGdcddeHZJdeZKeKZL[KddfZMed k7ZNe j3dgeNr/dhZOeJeLjeOeQeOeQZR[OddiZSe j3djdkZTeT\ZUZV[TedlrKedmsCednr;dZWdLxZXZYe j3gdodpZZdqZ[drZ\dsZ]dtZ^e j3gduedmrdvZ_dwZ`e j3dxdygedzrd{Zad|Zbe j3d}d~gejdk7rddZdGddZee j)dddZfdZgeds egZhdeh_iGddejZked k(rGddZldZmyy#e$rYwxYw#e$rYwxYw#e$rYWwxYw#e$rY3wxYw)aNOS routines for NT or Posix depending on what system we're on. This exports: - all functions from posix or nt, e.g. unlink, stat, etc. - os.path is either posixpath or ntpath - os.name is either 'posix' or 'nt' - os.curdir is a string representing the current directory (always '.') - os.pardir is a string representing the parent directory (always '..') - os.sep is the (or a most common) pathname separator ('/' or '\\') - os.extsep is the extension separator (always '.') - 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 - os.devnull is the file path of the null device ('/dev/null', etc.) 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). N)_check_methods)altsepcurdirpardirseppathseplinesepdefpathnamepathdevnullSEEK_SETSEEK_CURSEEK_ENDfsencodefsdecode get_exec_pathfdopenextsepc|tvSN)globals)r s )/opt/alt/python312/lib64/python3.12/os.py_existsr)s 79 c t|jS#t$r+t|Dcgc] }|ddk7s |ncc}wc}cYSwxYw)Nr_)list__all__AttributeErrordir)modulens r_get_exports_listr$,sH7FNN## 7v;6;a!A$#+;667sA  AA A  A posix )*)_exitr()_have_functionsntz zno os specific module foundzos.path)rrrrr rrr r)c`|tvr&|tvrtjt|yyyr)_globalsr)_setadd)strfns r_addr1hs' (N!7 HHXb\ ""8NrHAVE_FACCESSATaccess HAVE_FCHMODATchmod HAVE_FCHOWNATchown HAVE_FSTATATstatHAVE_FUTIMESATutime HAVE_LINKATlink HAVE_MKDIRATmkdir HAVE_MKFIFOATmkfifo HAVE_MKNODATmknod HAVE_OPENATopenHAVE_READLINKATreadlink HAVE_RENAMEATrenameHAVE_SYMLINKATsymlink HAVE_UNLINKATunlinkrmdirHAVE_UTIMENSAT HAVE_FCHDIRchdir HAVE_FCHMOD HAVE_FCHOWNHAVE_FDOPENDIRlistdirscandir HAVE_FEXECVEexecveHAVE_FTRUNCATEtruncate HAVE_FUTIMENS HAVE_FUTIMESHAVE_FPATHCONFpathconfstatvfsfstatvfs HAVE_FSTATVFS HAVE_LCHFLAGSchflags HAVE_LCHMODlchown HAVE_LCHOWN HAVE_LUTIMES HAVE_LSTAT MS_WINDOWSFctj|\}}|stj|\}}|rQ|rOtj|s: t||t }t |trtt d}||k(ry t||y#t$rYEwxYw#t$r|rtj|sYywxYw)amakedirs(name [, mode=0o777][, exist_ok=False]) 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. If the target directory already exists, raise an OSError if exist_ok is False. Otherwise no exception is raised. This is recursive. )exist_okASCIIN) r splitexistsmakedirsFileExistsErrorr isinstancebytesr?OSErrorisdir)r modermheadtailcdirs rrqrqsD!JD$ ZZ% d T[[.  TH - dE ")D 4<  dD    tzz$/  0s$ B B# B B #!CCct|tj|\}}|stj|\}}|r.|r+ t|tj|\}}|r|r)yyyy#t$rYywxYw)aremovedirs(name) Super-rmdir; remove a leaf directory and all empty intermediate ones. Works like rmdir except that, if the leaf directory is successfully removed, directories corresponding to rightmost path segments will be pruned away 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)rNr roru)r rxrys r removedirsr|sx $KD!JD$ ZZ% d 4  $KZZ% d 4$4$   s A// A;:A;ctj|\}}|r"|r tj|s t|t ||tj|\}}|r|r t |yyy#t $rYywxYw)a<renames(old, new) 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 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)r rorprqrIr|ru)oldnewrxrys rrenamesrstCJD$ T[[. 3CJD$   t t   s& A44 B?B)rqr|rc#Ktjd||||t|g}tjtj }}|r|j }t|tr|'g}g}g} t|} d} | 5 t| } |tur&| jdxr| j }n| j}|r|j!| j"n|j!| j"|s8|r6|rd}n | j%}| }|r| j!| jyy#t$r} ||| Yd} ~ d} ~ wwxYw#t$rYnHwxYw#t$r} ||| d} Yd} ~ n*d} ~ wwxYw#t$rd}YwxYw#t$rd}YwxYwdddn #1swYnxYw| r|r=|||ft'|D]'}|||}|s ||r|j!|)n5|j!|||ft'| D]}|j!||r w)a& Directory tree generator. For each directory in the directory tree rooted at top (including top itself, but excluding '.' and '..'), yields a 3-tuple dirpath, dirnames, filenames dirpath is a string, the path to the directory. dirnames is a list of the names of the subdirectories in dirpath (including symlinks to directories, and excluding '.' and '..'). filenames is a list of the names of the non-directory files in dirpath. Note that the names in the lists are just names, with no path components. To get a full path (which begins with top) to a file or directory in dirpath, do os.path.join(dirpath, name). If optional arg 'topdown' is true or not specified, the triple for a directory is generated before the triples for any of its subdirectories (directories are generated top down). If topdown is false, the triple for a directory is generated after the triples for all of its subdirectories (directories are generated bottom up). When topdown is true, the caller can modify the dirnames list in-place (e.g., via del or slice assignment), and walk will only recurse into the subdirectories whose names remain in dirnames; this can be used to prune the search, or to impose a specific order of visiting. Modifying dirnames when topdown is false has no effect on the behavior of os.walk(), since the directories in dirnames have already been generated by the time dirnames itself is generated. No matter the value of topdown, the list of subdirectories is retrieved before the tuples for the directory and its subdirectories are generated. By default errors from the os.scandir() call are ignored. If optional arg 'onerror' is specified, it should be a function; it will be called with one argument, an OSError instance. It can report the error to continue with the walk, or raise the exception to abort the walk. Note that the filename is available as the filename attribute of the exception object. By default, os.walk does not follow symbolic links to subdirectories on systems that support them. In order to get this functionality, set the optional argument 'followlinks' to true. Caution: if you pass a relative pathname for top, don't change the current working directory between resumptions of walk. walk never changes the current directory, and assumes that the client doesn't either. Example: import os from os.path import join, getsize for root, dirs, files in os.walk('python/Lib/email'): print(root, "consumes ") print(sum(getsize(join(root, name)) for name in files), end=" ") print("bytes in", len(files), "non-directory files") if 'CVS' in dirs: dirs.remove('CVS') # don't visit CVS directories zos.walkNFTfollow_symlinks)sysauditfspathr islinkjoinpoprstuplerVrunext StopIteration_walk_symlinks_as_filesis_dir is_junctionappendr is_symlinkreversed)toptopdownonerror followlinksstackrrdirsnondirs walk_dirs scandir_iterrorcontentryr walk_intordirnamenew_paths rwalkrsUxIIigw < C[ME;; DF iik c5 !I    J    $Z 0#"&==!&e!D!`UM^M^M`I`!& KK +NN5::.6#$( /).)9)9);J )3N  !((4W1 " "  )*D ##F#$ '/*/J /IZZZ   tW$ $#D>W- fX&6LL** LL#tW- .$Y/ X&0o sA3I6 E IG E+G>FAGF-'!GI E( E#I#E((I+ E74E:5G6E77E:: F FGFG F*'G)F**G- F;8G:F;;G> IG 5IA Irrdir_fdc#Ktjd|||||t|}td|||dffg}t |t } |rt |||||Ed{|r|r+|j\}}|tk(r t||r*yy75#|r+|j\}}|tk(r t||r*wwxYww)aDirectory tree generator. This behaves exactly like walk(), except that it yields a 4-tuple dirpath, dirnames, filenames, dirfd `dirpath`, `dirnames` and `filenames` are identical to walk() output, and `dirfd` is a file descriptor referring to the directory `dirpath`. The advantage of fwalk() over walk() is that it's safe against symlink races (when follow_symlinks is False). If dir_fd is not None, it should be a file descriptor open to a directory, and top should be relative; top will then be relative to that directory. (dir_fd is always supported for fwalk.) Caution: Since fwalk() yields file descriptors, those are only valid until the next iteration step, so you should dup() them if you want to keep them for a longer period. Example: import os for root, dirs, files, rootfd in os.fwalk('python/Lib/email'): print(root, "consumes", end="") print(sum(os.stat(name, dir_fd=rootfd).st_size for name in files), end="") print("bytes in", len(files), "non-directory files") if 'CVS' in dirs: dirs.remove('CVS') # don't visit CVS directories zos.fwalkTN) rrr _fwalk_walkrsrt_fwalkr _fwalk_closeclose) rrrrrrisbytesactionvalues rfwalkrsB *c7G_fMSkfc3=>?S%( !!%'7OTTT % \)%LU % \)%Ls<ACBBB#+CCB,CCCc #K|j\}}|tk(r t|y|tk(r|y|\}}} } |s#| t | d|} n| j d} t | t tz||jtf|sB|r tj jsytj t syt} g}g}|s|rdng}| D]b} | j }|r t#|} | j%r%|j||#|j| n|j|d|r ||fn|jt||fftj(dd|"|j+fd|dddDy|j+fdt-|ddd|dddDy#t$r} |r||| Yd} ~ yd} ~ wwxYw#t$r6 | j'r|j|n#t$rYnwxYwY[wxYww) NFrr)rrc3>K|]}td|z|dffywFNr).0r topfdtoppaths r z_fwalk..2s-(&DueWt^T4HI&sc3DK|]\}}td|z||ffywrr)rr rrrs rrz_fwalk..6s2C#AKD%ueWt^T5IJ#As )rrr _fwalk_yieldr9rEO_RDONLY O_NONBLOCKrurstS_ISDIRst_moder samestatrVr rrrrextendzip)rrrrrrrisrootdirfdtopnamerorig_sterrrrrentriesr rrs @@rrrsF   \ ! %L  | #K 16.w "="7E%PG#jjj?G(Z"7FE  lE*+bjj9==$u+6U^ !_$"E::D~ <<>KK%*u-NN4( & 4%/ / LL,$(GH I))GWRa[1 ? LL( 2J( ( LLC#&tDbDz74R4=#AC C_ "   8 '')t,  sz?I>G0BIAHBI0 H9 H I HI I!H?>I? I I I  IIIIrct||y)zpexecl(file, *args) Execute the executable file with argument list args, replacing the current process. N)execvfileargss rexeclr<s  $rc.|d}t||dd|y)zexecle(file, *args, env) Execute the executable file with argument list args and environment env, replacing the current process. rN)rXrrenvs rexeclerCs r(C 4crC rct||y)zexeclp(file, *args) Execute the executable file (which is searched for along $PATH) with argument list args, replacing the current process. N)execvprs rexeclprKs  4rc.|d}t||dd|y)zexeclpe(file, *args, env) Execute the executable file (which is searched for along $PATH) with argument list args and environment env, replacing the current process. rN)execvpers rexeclperRs r(C D$s)S!rct||y)zexecvp(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_execvpers rrr[s  T4rct|||y)zexecvpe(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. Nrrs rrrcs T4r)rrrrrrc| t}||f}nt}|f}t}tj|r ||g|yd}t |}t dk7rt|}tt|}|D]"}tj||} ||g|$|| #ttf$r } | } Yd} ~ Ad} ~ wt$r} | } || }Yd} ~ Xd} ~ wwxYw)Nr*) rXrenvironr rrr rmaprFileNotFoundErrorNotADirectoryErrorru) rrr exec_funcargrest saved_exc path_listr!fullnameelast_excs rrrns  + ' ||D$!!Ic"I t|~), 99S$'  h ) ) N"#56 H H   s$ BC )B00 C <CC cddl}|t}|j5|jdt |j d}tr2 |d}| td|}|t|tr t|}dddt}|jtS#t $rd}YjwxYw#tt f$rYdwxYw#1swYLxYw)zReturns the sequence of directories that will be searched for the named executable (similar to a shell) when launching a process. *env* must be an environment variable dict or None. If *env* is None, os.environ will be used. rNignorePATHsPATHz*env cannot contain 'PATH' and b'PATH' keys)warningsrcatch_warnings simplefilter BytesWarningget TypeErrorsupports_bytes_environ ValueErrorKeyErrorrsrtrr ror)rrr path_listbs rrrs {  "h 5 I " ' \ ($DFF& $Iu)E$Y/ ) #, ??7 ##' I  i(   # "sRC B#C  B4,C # B1.C 0B11C 4CC CC  C)MutableMappingMappingcTeZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zy )_EnvironcJ||_||_||_||_||_yr) encodekey decodekey encodevalue decodevalue_data)selfdatarrrrs r__init__z_Environ.__init__s'""&& rc |j|j|}|j|S#t$r t|dwxYwr)rrrrrkeyrs r __getitem__z_Environ.__getitem__sN *JJt~~c23E&& *3-T ) *s 1Ac~|j|}|j|}t||||j|<yr)rrputenvrrs r __setitem__z_Environ.__setitem__s7nnS!  'sE 3rc|j|}t| |j|=y#t$r t|dwxYwr)runsetenvrr)rr encodedkeys r __delitem__z_Environ.__delitem__sD^^C(  * :& *3-T ) *s ,Ac#jKt|j}|D]}|j|ywr)rrr)rkeysrs r__iter__z_Environ.__iter__s-DJJC..% %s13c,t|jSr)lenrrs r__len__z_Environ.__len__s4::rctdjfdjjD}d|dS)Nz, c3nK|],\}}j|dj|.yw)z: N)rr)rrrrs rrz$_Environ.__repr__..s>$ 0 U~~c"%R(8(8(?'B C0s25z environ({z}))rritems)rformatted_itemss` r__repr__z_Environ.__repr__s=))$ "jj..0$  O,C00rct|Sr)dictrs rcopyz _Environ.copys Dzrc||vr|||<||Srrs r setdefaultz_Environ.setdefaults d?DICyrc(|j||Sr)update)rothers r__ior__z_Environ.__ior__s E rcjt|tstSt|}|j ||SrrsrNotImplementedrrrr rs r__or__z_Environ.__or__s,%)! !4j 5 rcjt|tstSt|}|j ||Srr#r%s r__ror__z_Environ.__ror__s,%)! !5k 4 rN)__name__ __module__ __qualname__rrrr rrrrrr!r&r(rrrrrs>' *& 1 rrctdk(r:d}|t}fd}i}tjD]\}}||||<n&t j fdfd}}t}t ||||S)Nr*cht|ts!tdt|jz|S)Nstr expected, not %s)rsr/rtyper)rs r check_strz!_createenviron..check_str s,eS) 6e9M9M MNNLrc0|jSr)upper)rencodes rrz!_createenviron..encodekeys#;$$& &rct|ts!tdt|jz|j dS)Nr.surrogateescape)rsr/rr/r)r4rencodings rr4z_createenviron..encodes:eS) 6e9M9M MNN<<*;< .decodes<<*;< s rgetenvbrE=s||C))r)rDrEcvtjtjfd}fd}||fS)Ncbt|}t|tr|jS|S)aEncode filename (an os.PathLike, bytes, or str) to the filesystem encoding with 'surrogateescape' error handler, return bytes unchanged. On Windows, use 'strict' error handler if the file system encoding is 'mbcs' (which is the default encoding). )rrsr/r4filenamer8errorss rrz_fscodec..fsencodeIs/ (# h $??8V4 4Orcbt|}t|tr|jS|S)aDecode filename (an os.PathLike, bytes, or str) from the filesystem encoding with 'surrogateescape' error handler, return str unchanged. On Windows, use 'strict' error handler if the file system encoding is 'mbcs' (which is the default encoding). )rrsrtr:rHs rrz_fscodec..fsdecodeUs/ (# h &??8V4 4Or)rr;getfilesystemencodeerrors)rrr8rJs @@r_fscodecrMEs6((*H  * * ,F   X rforkspawnvr)P_WAITP_NOWAIT P_NOWAITOc:t|ttfs td|r|ds t dt }|s | |||n ||||yy|tk(r|S t|d\}}t|rt|S#t dYyxYw)Nzargv must be a tuple or a listrz"argv first element cannot be empty) rsrrrrrNr(rQwaitpid WIFSTOPPEDwaitstatus_to_exitcode)rwrrrfuncpidwpidstss r _spawnvefr\rs$ .<= =47AB Bf ;t$tS)%x #CO cc?-c22 c s B Bc(t|||dtS)aspawnv(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)r\rrwrrs rrOrOstT477rc(t||||tS)a: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. )r\rXrwrrrs rspawnverastT377rc(t|||dtS)a8spawnvp(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)r\rr^s rspawnvprcstT488rc(t||||tS)a\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. )r\rr`s rspawnvperestT388r)rOrarcrect|||S)aspawnl(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. )rOr^s rspawnlrgsdD$''rc.|d}t|||dd|S)a: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. rN)rar`s rspawnleris$2htT49c22rrgrircct|||S)aWspawnlp(mode, file, *args) -> 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. )rcr^s rspawnlprkstT4((rc.|d}t|||dd|S)a]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. rN)rer`s rspawnlperms$2hdD"Is33rrkrmvxworksct|tstdt|z|dvrt d|z|dk(s| t dddl}|dk(r6|j |dd|j|}t|j|S|j |dd|j| }t|j|S) Nz&invalid cmd type (%s, expected string))rwzinvalid mode %rrz+popen() does not support unbuffered streamsrpT)shelltextstdoutbufsize)rrrsstdinru) rsr/rr/r subprocessPopenPIPE _wrap_closertrv)cmdrw bufferingrwprocs rpopenr~s#s#DtCyPQ Q z !.56 6 >Y.JK K 3;##C*.T+5??,5$7Dt{{D1 1##C*.T*4//,5$7Dtzz40 0rc0eZdZdZdZdZdZdZdZy)rzc ||_||_yr)_stream_proc)rstreamr}s rrz_wrap_close.__init__ s!DLDJrc|jj|jj}|dk(rytdk(r|S|dzS)Nrr*)rrrwaitr )r returncodes rrz_wrap_close.closesC LL   *JQt|!!!Q&rc|Srrrs r __enter__z_wrap_close.__enter__Krc$|jyrrrrs r__exit__z_wrap_close.__exit__ JJLrc.t|j|Sr)getattrr)rr s r __getattr__z_wrap_close.__getattr__s4<<. .rc,t|jSr)iterrrs rrz_wrap_close.__iter__s % %rN) r)r*r+rrrrrrrrrrzrz s   '   / &rrzr~ct|tstdt|zddl}d|vr|j |}|j ||||g|i|S)Nz&invalid fd type (%s, expected integer)rb)rsintrr/io text_encodingrE)fdrwr|r8rkwargsrs rrr$s\ b# @48KLL  $##H- 2772tY B4 B6 BBrcpt|ttfr|St|} |j |}t|ttfr|Stdj|jt|j#t $r&t |drtd|jzwxYw)aaReturn the path representation of a path-like object. If str or bytes is passed in, it is returned unchanged. Otherwise the os.PathLike interface is used to get the path representation. If the path representation is not str or bytes, TypeError is raised. If the provided path is not str, bytes, or os.PathLike, TypeError is raised. __fspath__z/expected str, bytes or os.PathLike object, not z7expected {}.__fspath__() to return str or bytes, not {}) rsr/rtr/rr hasattrrr)format)r path_type path_reprs r_fspathr/s$e % T I9((. )c5\*!!' (:(:(,Y(@(@"BC C 9 9l + #%.%7%789 9 9s B/B5rcTeZdZdZej dZedZee Z y)PathLikezCAbstract base class for implementing the file system path protocol.ct)z9Return the file system path representation of the object.)NotImplementedErrorrs rrzPathLike.__fspath__Ws "!rc6|tur t|dStS)Nr)rrr$)clssubclasss r__subclasshook__zPathLike.__subclasshook__\s (?!(L9 9rN) r)r*r+__doc__abcabstractmethodr classmethodr GenericAlias__class_getitem__rrrrrSs>M"" $L1rrc*eZdZdZdZdZdZdZy)_AddedDllDirectoryc.||_||_||_yr)r _cookie_remove_dll_directory)rr cookieremove_dll_directorys rrz_AddedDllDirectory.__init__gsDI!DL)=D &rcH|j|jd|_yr)rrr rs rrz_AddedDllDirectory.closeks  & &t|| 4DIrc|Srrrs rrz_AddedDllDirectory.__enter__nrrc$|jyrrrs rrz_AddedDllDirectory.__exit__prrcR|jrdj|jSy)Nzz)r rrs rrz_AddedDllDirectory.__repr__rs!yy299$))DD*rN)r)r*r+rrrrrrrrrrfs >    +rrc\ddl}|j|}t|||jS)aOAdd a path to the DLL search path. This search path is used when resolving dependencies for imported extension modules (the module itself is resolved through sys.path), and also by ctypes. Remove the directory by calling close() on the returned object or using it in a with statement. rN)r*_add_dll_directoryrr)r r*rs radd_dll_directoryrws5 &&&t,!    $ $  r)iF)TNF).TNr)rpr)rprN)nrrrr9r_collections_abcrr/rrrbuiltin_module_names_namesrrr$r r r%r(r ImportError posixpathr r)rr*ntpathmodulesos.pathrrrrr rrr rr,r1setr-supports_dir_fdsupports_effective_idsr. supports_fdsupports_follow_symlinksrrrrqr|robjectrrrErVrrrrrrrrrrrrrrrrr<rr@rrBrrtrDrErMrrrPrQrRr\rOrarcrergrirkrmplatformr~rzrrrr)ABCrrrrrrrs0 +DI ! !  7 f DG w ) NN$U+,  V^ DG w  NN$R()  & 3 44 I     yH# 5D H%G$G$F# G$F#G$H%G$F# J'H% I&H%G$ G$O 5D H%! 5DG$G$G$ I& I&H%HHTN J'G$G$ J'ygj1 _i(K 5D H%, G$F#I&G$x ]G$F#G$F#F# G$F##     @&,445!(X'tv$x FFO2sww2$4<++" %U!               sHS S+S7 TS('S(+S43S47T?TT  T