%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python3.8/distutils/__pycache__/
Upload File :
Create Path :
Current File : //usr/local/lib/python3.8/distutils/__pycache__/spawn.cpython-38.pyc

U

qa@sdZddlZddlZddlmZmZddlmZddlm	Z	dddZ
d	d
ZdddZej
d
krjdadadddZdddZdS)zdistutils.spawn

Provides the 'spawn()' function, a front-end to various platform-
specific functions for launching another program in a sub-process.
Also provides the 'find_executable()' to search the path for a given
executable name.
N)DistutilsPlatformErrorDistutilsExecError)DEBUG)logcCsNt|}tjdkr"t|||dn(tjdkr<t|||dntdtjdS)aRun another program, specified as a command list 'cmd', in a new process.

    'cmd' is just the argument list for the new process, ie.
    cmd[0] is the program to run and cmd[1:] are the rest of its arguments.
    There is no way to run a program with a name different from that of its
    executable.

    If 'search_path' is true (the default), the system's executable
    search path will be used to find the program; otherwise, cmd[0]
    must be the exact path to the executable.  If 'dry_run' is true,
    the command will not actually be run.

    Raise DistutilsExecError if running the program fails in any way; just
    return on success.
    posix)dry_runntz1don't know how to spawn programs on platform '%s'N)listosname_spawn_posix	_spawn_ntr)cmdsearch_pathverboserr+/usr/local/lib/python3.8/distutils/spawn.pyspawns

rcCs*t|D]\}}d|krd|||<q|S)zQuote command-line arguments for DOS/Windows conventions.

    Just wraps every argument which contains blanks in double quotes, and
    returns a new argument list.
     z"%s")	enumerate)argsiargrrr_nt_quote_args+src
Cs|d}t|}|r t|p|}td|g|dd|szttj||}Wn@tk
r}z"t	sp|}t
d||jdfW5d}~XYnX|dkrt	s|}t
d||fdS)Nrrrcommand %r failed: %s%command %r failed with exit status %d)rfind_executablerinfojoinrspawnvP_WAITOSErrorrrr)rrrr
executablercexcrrrr;s(
rdarwinc
Cs|td||rdS|d}|r*tjp.tj}d}tjdkrtdkrxddl	m
}|dp^datrxddtd	Da
trtjdt}t
d
d|d	Dkrd|tf}	t|	ttj|d}|rtjptj}t}
|
dkrz$|dkr|||n||||WnNtk
rX}z.ts(|}tjd
||jftdW5d}~XYnXtsd|}tjd|tdnzt|
d\}
}WnDtk
r}
z$ts|}td||
jdfW5d}
~
XYnXt|rts|}td|t|fnlt |rHt!|}|dkr,dSts6|}td||fn,t"|rZqntsd|}td||fqdS)Nrrr')	sysconfigMACOSX_DEPLOYMENT_TARGETcSsg|]}t|qSrint.0xrrr
<listcomp>esz _spawn_posix.<locals>.<listcomp>.cSsg|]}t|qSrr+r-rrrr0kszF$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configure)r)zunable to execute %r: %s
rz(unable to execute %r for unknown reasonsrrz"command %r terminated by signal %drz1unknown error executing %r: termination status %d)#rrr rexecvpexecvsysplatform_cfg_target	distutilsr(Zget_config_varsplit_cfg_target_splitenvirongetrdictexecvpeexecveforkr#rstderrwritestrerror_exitwaitpidrrWIFSIGNALEDWTERMSIG	WIFEXITEDWEXITSTATUS
WIFSTOPPED)rrrrr$Zexec_fnenvr(Z
cur_targetZmy_msgpidestatusr&exit_statusrrrr
Ws



r
c	Cstj|\}}tjdkr*|dkr*|d}tj|r:|S|dkrtjdd}|dkrztd}Wnt	t
fk
rtj}YnX|sdS|tj
}|D]&}tj||}tj|r|SqdS)zTries to find 'executable' in the directories listed in 'path'.

    A string listing directories separated by 'os.pathsep'; defaults to
    os.environ['PATH'].  Returns the complete filename or None if not found.
    win32z.exeNPATHCS_PATH)rpathsplitextr4r5isfiler:r;confstrAttributeError
ValueErrordefpathr8pathsepr )r$rR_extpathspfrrrrs(
r)rrr)rrr)rrr)N)__doc__r4rZdistutils.errorsrrZdistutils.debugrr7rrrrr5r6r9r
rrrrr<module>s



R

Zerion Mini Shell 1.0