选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
a ´i™˜ã@sTdZddlZddlZddlZddlmZeee ƒZ ej Z gd¢Z dd„Zdd„Zd e vrÞd Zd Zdd lTzdd lmZe  d ¡Wney–Yn0ddlZzddlmZWneyÂYn0ddlZe  eeƒ¡[nšde v�rpdZdZdd lTzdd lmZe  d ¡Wne�y&Yn0ddlZddlZe  eeƒ¡[zddlmZWne�ylYn0nedƒ‚eejd<ddlmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%[ edƒ�r¬e&ƒZ'dd„Z(e)ƒZ*e(ddƒe(ddƒe(ddƒe(ddƒe(dd ƒe(d!d"ƒe(d#d$ƒe(d%d&ƒe(d'd(ƒe(d)d*ƒe(d+d,ƒe(d-d.ƒe(d/d0ƒe(d1d2ƒe(d1d3ƒe(d4d ƒe*Z+e)ƒZ*e(ddƒe*Z,e)ƒZ*e(d5d6ƒe(d7dƒe(d8dƒe(d9d:ƒe(d9d;ƒe(dd?ƒe(d@d ƒe(dAd ƒe(dBdCƒedDƒ�redEƒ�re(dFdDƒe*Z.e)ƒZ*e(ddƒe(ddƒe(ddƒe(dGdHƒe(dIdƒedJƒ�rde(dKdƒe(d!d"ƒe(dLd ƒe(dMdƒe(ddƒe(d4d ƒe(dNdƒe*Z/[*[['[(dZ0dOZ1dPZ2d¬dSdT„Z3dUdV„Z4dWdX„Z5e  gdY¢¡d­d[d\„Z6d]d^„Z7e  d\¡e8ehe+k�rdkdl„Z?dmdn„Z@dodp„ZAe  gdq¢¡d¯drds„ZBd°dtdu„ZCddvlmDZDmEZEGdwdx„dxeDƒZFdydz„ZGeGƒZH[Gd±d{d|„ZIedkZJe  d}¡eJ�rd~d„ZKeFeHjLeKeMeKeMƒZN[Kd²d€d�„ZOe  d‚¡dƒd„„ZPePƒ\ZQZR[Ped…ƒ�r’ed†ƒ�s’ed‡ƒ�r’dZSdOZTZUe  gdˆ¢¡d‰dŠ„ZVd‹d†„ZWdŒd�„ZXdŽd�„ZYd�d‘„ZZe  gd’¢¡ed†ƒ�rºd“d”„Z[d•d–„Z\e  d”d–g¡ed�ƒ�râd—d˜„Z]d™dš„Z^e  d˜dšg¡d³d�dž„Z_GdŸd „d ƒZ`d¡d¢„Zad£d¤„Zbed¥ƒ�sebZcd¥ec_dGd¦d§„d§ejeƒZfedk�rPGd¨d©„d©ƒZgdªd«„ZhdS)´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)ÚaltsepÚcurdirÚpardirÚsepÚpathsepÚlinesepÚdefpathÚnameÚpathÚdevnullÚSEEK_SETÚSEEK_CURÚSEEK_ENDÚfsencodeÚfsdecodeÚ get_exec_pathÚfdopenÚpopenÚextsepcCs |tƒvS©N)Úglobals)r ©rú/usr/lib64/python3.9/os.pyÚ_exists)srcCs6z t|jƒWSty0dd„t|ƒDƒYS0dS)NcSsg|]}|ddkr|‘qS)rÚ_r)Ú.0ÚnrrrÚ 0óz%_get_exports_list..)ÚlistÚ__all__ÚAttributeErrorÚdir)ÚmodulerrrÚ_get_exports_list,s  r%ÚposixÚ )Ú*)Ú_exitr))Ú_have_functionsÚntz zno os specific module foundzos.path)rrrrr rrr r*cCs"|tvr|tvrt t|¡dSr)Ú_globalsr*Ú_setÚadd)ÚstrÚfnrrrÚ_addhsr1ZHAVE_FACCESSATÚaccessZ HAVE_FCHMODATÚchmodZ HAVE_FCHOWNATÚchownZ HAVE_FSTATATÚstatZHAVE_FUTIMESATÚutimeZ HAVE_LINKATÚlinkZ HAVE_MKDIRATÚmkdirZ HAVE_MKFIFOATÚmkfifoZ HAVE_MKNODATÚmknodZ HAVE_OPENATÚopenZHAVE_READLINKATÚreadlinkZ HAVE_RENAMEATÚrenameZHAVE_SYMLINKATÚsymlinkZ HAVE_UNLINKATÚunlinkÚrmdirZHAVE_UTIMENSATZ HAVE_FCHDIRÚchdirZ HAVE_FCHMODZ HAVE_FCHOWNZHAVE_FDOPENDIRÚlistdirÚscandirZ HAVE_FEXECVEÚexecveZHAVE_FTRUNCATEÚtruncateZ HAVE_FUTIMENSZ HAVE_FUTIMESZHAVE_FPATHCONFÚpathconfÚstatvfsÚfstatvfsZ HAVE_FSTATVFSZ HAVE_LCHFLAGSÚchflagsZ HAVE_LCHMODÚlchownZ HAVE_LCHOWNZ HAVE_LUTIMESZ HAVE_LSTATZ MS_WINDOWSéééÿFcCs°t |¡\}}|s t |¡\}}|rz|rzt |¡szzt||d�WntyTYn0t}t|tƒrnttdƒ}||krzdSzt||ƒWn"t yª|r¤t  |¡s¦‚Yn0dS)a‹makedirs(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_okÚASCIIN) r ÚsplitÚexistsÚmakedirsÚFileExistsErrorrÚ isinstanceÚbytesr8ÚOSErrorÚisdir)r ÚmoderNÚheadÚtailÚcdirrrrrRÈs$     rRcCsht|ƒt |¡\}}|s(t |¡\}}|rd|rdz t|ƒWntyRYqdYn0t |¡\}}q(dS)a¬removedirs(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)r@r rPrV)r rYrZrrrÚ removedirsès    r\cCslt |¡\}}|r(|r(t |¡s(t|ƒt||ƒt |¡\}}|rh|rhz t|ƒWntyfYn0dS)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 rPrQrRr=r\rV)ÚoldÚnewrYrZrrrÚrenamesþs   r_)rRr\r_TcCs$t d||||¡tt|ƒ|||ƒS)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 (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", end="") 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.walk)ÚsysÚauditÚ_walkÚfspath)ÚtopÚtopdownÚonerrorÚ followlinksrrrÚwalks;rhc cs g}g}g}z t|ƒ}Wn6tyN}z|dur8||ƒWYd}~dSd}~00|��z,z t|ƒ} Wnty€YW�q`Yn0WnBtyÆ}z*|dur¤||ƒWYd}~WdƒdSd}~00z |  ¡} Wnt�yìd} Yn0| �r| | j¡n | | j¡|sX| rX|�r"d} n,z |  ¡} Wnt�yFd} Yn0| } | rX| | j¡qXWdƒn1�sv0Y|�rÜ|||fVtj tj } }|D]4}|||ƒ}|�sÂ| |ƒ�s¤t ||||ƒEdH�q¤n,|D]}t ||||ƒEdH�qà|||fVdS)NFT) rCrVÚnextÚ StopIterationÚis_dirÚappendr Ú is_symlinkr ÚislinkÚjoinrb)rdrerfrgÚdirsÚnondirsÚ walk_dirsÚ scandir_itÚerrorÚentryrkÚ walk_intormrnroÚdirnameÚnew_pathrrrrbXs\   $     .  rbÚ.©Úfollow_symlinksÚdir_fdccsªt d|||||¡t|tƒr(t|dƒs0t|ƒ}|sBt|d|d�}t|t|d�}zJ|srt   |j ¡r�t   |t|ƒ¡r�t||t|tƒ|||ƒEdHWt|ƒn t|ƒ0dS)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.fwalkÚ __index__Frz©r|N)r`rarTÚintÚhasattrrcr5r;ÚO_RDONLYÚstÚS_ISDIRÚst_moder ÚsamestatÚ_fwalkrUÚclose)rdrerfr{r|Úorig_stÚtopfdrrrÚfwalk®s!ÿÿ rŠc csÎt|ƒ}g}g}|s|rdng} |D]ˆ} | j} |r:t| ƒ} z4|  ¡rb| | ¡| durl|  | ¡n | | ¡Wq$tyªz|  ¡r�| | ¡Wnty¤Yn0Yq$0q$|rÀ||||fV| durÌ|nt|| ƒD]Þ} z@|�s |röt| |dd�} n| \} } | jdd�} t | t |d�} WnDt�y^}z*|du�r>||ƒWYd}~qÖWYd}~n d}~00zH|�szt   | t| ƒ¡�ržt   || ¡}t| |||||ƒEdHWt| ƒqÖt| ƒ0qÖ|�sÊ||||fVdS)NF)r|r{)r{r~)rCr rrkrlrVrmÚzipr5r;r�r r…ror†r‡)r‰ÚtoppathÚisbytesrerfr{rsrprqÚentriesrur rˆÚdirfdÚerrÚdirpathrrrr†ßsV      " ÿ r†cGst||ƒdS)zpexecl(file, *args) Execute the executable file with argument list args, replacing the current process. N)Úexecv©ÚfileÚargsrrrÚexeclsr–cGs |d}t||dd…|ƒdS)zŠexecle(file, *args, env) Execute the executable file with argument list args and environment env, replacing the current process. éÿÿÿÿN)rD©r”r•ÚenvrrrÚexecle sršcGst||ƒdS)z•execlp(file, *args) Execute the executable file (which is searched for along $PATH) with argument list args, replacing the current process. N)Úexecvpr“rrrÚexeclp(srœcGs |d}t||dd…|ƒdS)z³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. r—N)Úexecvper˜rrrÚexeclpe/sržcCst||ƒdS)zÀexecvp(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©Ú_execvper“rrrr›8sr›cCst|||ƒdS)zÞexecvpe(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. NrŸr˜rrrr�@sr�)r–ršrœržr›r�c Cs|durt}||f}nt}|f}t}t |¡rB||g|¢RŽdSd}t|ƒ}tdkrht|ƒ}tt|ƒ}|D]„}t  ||¡}z||g|¢RŽWqlt t fy¼} z| } WYd} ~ qld} ~ 0t yî} z| } |durÚ| }WYd} ~ qld} ~ 00ql|durþ|‚| ‚dS)Nr+) rDr’Úenvironr rwrr rÚmaproÚFileNotFoundErrorÚNotADirectoryErrorrV) r”r•r™Ú exec_funcÚargrestÚ saved_excÚ path_listr#ÚfullnameÚeÚlast_excrrrr Ks6    r c CsÚddl}|durt}| ¡�˜| dt¡z| d¡}WntyNd}Yn0tr¦z |d}WnttfyvYn0|durˆt dƒ‚|}|dur¦t |t ƒr¦t |ƒ}Wdƒn1sº0Y|durÐt }| t¡S)zóReturns 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. rNÚignoreÚPATHsPATHz*env cannot contain 'PATH' and b'PATH' keys)Úwarningsr¡Úcatch_warningsÚ simplefilterÚ BytesWarningÚgetÚ TypeErrorÚsupports_bytes_environÚKeyErrorÚ ValueErrorrTrUrr rPr)r™r®r¨Ú path_listbrrrrks0      ÿ&r)ÚMutableMappingÚMappingc@sleZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„ZdS)Ú_EnvironcCs"||_||_||_||_||_dSr)Ú encodekeyÚ decodekeyÚ encodevalueÚ decodevalueÚ_data)ÚselfÚdatar»r¼r½r¾rrrÚ__init__›s z_Environ.__init__cCs<z|j| |¡}Wnty0t|ƒd‚Yn0| |¡Sr)r¿r»rµr¾©rÀÚkeyÚvaluerrrÚ __getitem__¢s  z_Environ.__getitem__cCs,| |¡}| |¡}t||ƒ||j|<dSr)r»r½Úputenvr¿rÃrrrÚ __setitem__ªs   z_Environ.__setitem__cCs@| |¡}t|ƒz |j|=Wnty:t|ƒd‚Yn0dSr)r»Úunsetenvr¿rµ)rÀrÄÚ encodedkeyrrrÚ __delitem__°s    z_Environ.__delitem__ccs$t|jƒ}|D]}| |¡VqdSr)r r¿r¼)rÀÚkeysrÄrrrÚ__iter__¹s z_Environ.__iter__cCs t|jƒSr)Úlenr¿©rÀrrrÚ__len__¿sz_Environ.__len__cs$d d ‡fdd„ˆj ¡Dƒ¡¡S)Nzenviron({{{}}})z, c3s*|]"\}}d ˆ |¡ˆ |¡¡VqdS)z {!r}: {!r}N)Úformatr¼r¾)rrÄrÅrÏrrÚ Äsÿz$_Environ.__repr__..)rÑror¿ÚitemsrÏrrÏrÚ__repr__Âs  ÿÿz_Environ.__repr__cCst|ƒSr)ÚdictrÏrrrÚcopyÇsz _Environ.copycCs||vr|||<||SrrrÃrrrÚ setdefaultÊsz_Environ.setdefaultcCs| |¡|Sr)Úupdate)rÀÚotherrrrÚ__ior__Ïs z_Environ.__ior__cCs$t|tƒstSt|ƒ}| |¡|Sr©rTr¹ÚNotImplementedrÕrØ©rÀrÙr^rrrÚ__or__Ós   z_Environ.__or__cCs$t|tƒstSt|ƒ}| |¡|SrrÛrÝrrrÚ__ror__Ús   z_Environ.__ror__N)Ú__name__Ú __module__Ú __qualname__rÂrÆrÈrËrÍrÐrÔrÖr×rÚrÞrßrrrrrºšs rºcs€tdkrHdd„}|‰t}‡fdd„}i}t ¡D]\}}||||ƒ<q0n(t ¡‰‡fdd„‰‡fdd „}ˆ}t}t|||ˆ|ƒS) Nr+cSs t|tƒstdt|ƒjƒ‚|S)Nústr expected, not %s)rTr/r³Útyperà©rÅrrrÚ check_sträs z!_createenviron..check_strcs ˆ|ƒ ¡Sr)Úupper)rÄ)Úencoderrr»êsz!_createenviron..encodekeycs(t|tƒstdt|ƒjƒ‚| ˆd¡S)NrãÚsurrogateescape)rTr/r³räràrèrå©Úencodingrrrèòs z_createenviron..encodecs | ˆd¡S)Nré)Údecoderårêrrrìösz_createenviron..decode)r r/r¡rÓr`Úgetfilesystemencodingrº)rærìr»rÁrÄrÅr)rèrërÚ_createenvironás"   þrîcCs t ||¡S)z©Get an environment variable, return None if it doesn't exist. The optional second argument can specify an alternate default. key, default and the result are str.)r¡r²©rÄÚdefaultrrrÚgetenvsrñ)rñr´cCs t|tƒstdt|ƒjƒ‚|S)Nzbytes expected, not %s)rTrUr³räràrårrrÚ _check_bytes s ròcCs t ||¡S)z³Get an environment variable, return None if it doesn't exist. The optional second argument can specify an alternate default. key, default and the result are bytes.)Úenvironbr²rïrrrÚgetenvbsrô)rórôcs4t ¡‰t ¡‰‡‡fdd„}‡‡fdd„}||fS)Ncs&t|ƒ}t|tƒr| ˆˆ¡S|SdS)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). N)rcrTr/rè©Úfilename©rëÚerrorsrrr$s  z_fscodec..fsencodecs&t|ƒ}t|tƒr| ˆˆ¡S|SdS)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). N)rcrTrUrìrõr÷rrr0s  z_fscodec..fsdecode)r`ríÚgetfilesystemencodeerrors)rrrr÷rÚ_fscodec s   rúÚforkÚspawnvr’)ÚP_WAITÚP_NOWAITÚ P_NOWAITOcCs t|ttfƒstdƒ‚|r"|ds*tdƒ‚tƒ}|spz$|durJ|||ƒn ||||ƒWqœtdƒYqœ0n,|tkr||St|dƒ\}}t |ƒr”q|t |ƒSdS)Nzargv must be a tuple or a listrz"argv first element cannot be emptyé) rTÚtupler r³r¶rûr)rþÚwaitpidÚ WIFSTOPPEDÚwaitstatus_to_exitcode)rXr”r•r™ÚfuncÚpidÚwpidÚstsrrrÚ _spawnvefMs$  r cCst|||dtƒS)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 r’©rXr”r•rrrrühscCst||||tƒS)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 rD©rXr”r•r™rrrÚspawnveqsr cCst|||dtƒS)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 r›r rrrÚspawnvp}sr cCst||||tƒS)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 r�r rrrÚspawnvpe‡sr)rür r rcGs t|||ƒ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. )rür rrrÚspawnl™srcGs|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. r—N)r r rrrÚspawnle¢srcGs t|||ƒ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. )r r rrrÚspawnlp´srcGs|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. r—N)rr rrrÚspawnlpe¾srÚrr—cCs®t|tƒstdt|ƒƒ‚|dvr.td|ƒ‚|dks>|durFtdƒ‚ddl}ddl}|dkr„|j|d|j|d�}t |  |j ¡|ƒS|j|d|j|d �}t |  |j ¡|ƒSdS) Nz&invalid cmd type (%s, expected string))rÚwzinvalid mode %rrz+popen() does not support unbuffered streamsrT)ÚshellÚstdoutÚbufsize)rÚstdinr) rTr/r³rär¶Ú subprocessÚioÚPopenÚPIPEÚ _wrap_closeÚ TextIOWrapperrr)ÚcmdrXÚ bufferingrrÚprocrrrrÎs(  ýýrc@s<eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd S)rcCs||_||_dSr)Ú_streamÚ_proc)rÀÚstreamr!rrrrÂåsz_wrap_close.__init__cCs8|j ¡|j ¡}|dkr dStdkr,|S|d>SdS)Nrr+é)r"r‡r#Úwaitr )rÀÚ returncoderrrr‡ès  z_wrap_close.closecCs|SrrrÏrrrÚ __enter__ñsz_wrap_close.__enter__cGs | ¡dSr©r‡©rÀr•rrrÚ__exit__ósz_wrap_close.__exit__cCs t|j|ƒSr)Úgetattrr")rÀr rrrÚ __getattr__õsz_wrap_close.__getattr__cCs t|jƒSr)Úiterr"rÏrrrrÍ÷sz_wrap_close.__iter__N) ràrárârÂr‡r(r+r-rÍrrrrräs  rcOs:t|tƒstdt|ƒƒ‚ddl}|j|g|¢Ri|¤ŽS)Nz&invalid fd type (%s, expected integer)r)rTrr³rärr;)Úfdr•Úkwargsrrrrrûs rcCs†t|ttfƒr|St|ƒ}z| |¡}Wn.tyVt|dƒrD‚ntd|jƒ‚Yn0t|ttfƒrj|Std  |jt|ƒj¡ƒ‚dS)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 {}N) rTr/rUrär1r"r€r³ràrÑ)r Ú path_typeÚ path_reprrrrÚ_fspaths"  ÿ þr4rcc@s2eZdZdZejdd„ƒZedd„ƒZee ƒZ dS)ÚPathLikezCAbstract base class for implementing the file system path protocol.cCst‚dS)z9Return the file system path representation of the object.N)ÚNotImplementedErrorrÏrrrr1,szPathLike.__fspath__cCs|turt|dƒStS)Nr1)r5rrÜ)ÚclsÚsubclassrrrÚ__subclasshook__1s zPathLike.__subclasshook__N) ràrárâÚ__doc__ÚabcÚabstractmethodr1Ú classmethodr9Ú GenericAliasÚ__class_getitem__rrrrr5(s   r5c@s4eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd S) Ú_AddedDllDirectorycCs||_||_||_dSr)r Ú_cookieÚ_remove_dll_directory)rÀr ÚcookieZremove_dll_directoryrrrrÂ<sz_AddedDllDirectory.__init__cCs| |j¡d|_dSr)rBrAr rÏrrrr‡@s z_AddedDllDirectory.closecCs|SrrrÏrrrr(Csz_AddedDllDirectory.__enter__cGs | ¡dSrr)r*rrrr+Esz_AddedDllDirectory.__exit__cCs|jrd |j¡SdS)Nzz)r rÑrÏrrrrÔGs z_AddedDllDirectory.__repr__N)ràrárârÂr‡r(r+rÔrrrrr@;s r@cCs ddl}| |¡}t|||jƒS)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+Z_add_dll_directoryr@rB)r r+rCrrrÚadd_dll_directoryLs  ýrD)rMF)TNF)ryTN)N)N)N)N)rr—)ir:r;r`r5r‚Ú_collections_abcrrär rr>Úbuiltin_module_namesZ_namesr!rr%r rr&r)rlÚ ImportErrorÚ posixpathr r*Úextendr+ÚntpathÚmodulesZos.pathrrrrr rrr rr,r1Úsetr-Úsupports_dir_fdÚsupports_effective_idsr.Ú supports_fdÚsupports_follow_symlinksr rrrRr\r_rhrbr;rCrŠr†r–ršrœržr›r�r rr¸r¹rºrîr¡rñr´ròr¿rUrórôrúrrrýrþrÿr rür r rrrrrrrrr4rcràÚABCr5r@rDrrrrÚsb        (                                             >R 18    -G  þ