python (3.11.7)

(root)/
lib/
python3.11/
distutils/
__pycache__/
spawn.cpython-311.pyc

e4xdZddlZddlZddlZddlmZmZddlmZddl	m
Z
ejdkrdada
d
dZdd	ZdS)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)logdarwinct|}tjd||rdS|rt	|d}|||d<d}t
jdkrtHddlm	}|
dpdatr$dtd	Datrtjdt}d
|d	D}tdddd
gkr-|dddd
gkrd|dtd}	t!|	t#tj|}	t%j||}
|
|
j}nB#t,$r5}t.s|d}t1d|d|jd|d}~wwxYw|r$t.s|d}t1d|d|dS)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.
     Nrr)	sysconfigMACOSX_DEPLOYMENT_TARGETc,g|]}t|Sint.0xs  C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/distutils/spawn.py
<listcomp>zspawn.<locals>.<listcomp><s$L$L$LSVV$L$L$L.c,g|]}t|Srrrs  rrzspawn.<locals>.<listcomp>DsFFF1AFFFr
z)$MACOSX_DEPLOYMENT_TARGET mismatch: now "z" but "z)" during configure;must use 10.3 or later)r)envzcommand z	 failed: z failed with exit code )listrinfojoinfind_executablesysplatform_cfg_target	distutilsrget_config_varsplit_cfg_target_splitosenvirongetrdict
subprocessPopenwait
returncodeOSErrorrrargs)
cmdsearch_pathverbosedry_run
executablerr
cur_targetcur_target_splitmy_msgprocexitcodeexcs
             rspawnr?sn$s))CHSXXc]] $SV,,
!CF
C
|x++++++#22"<>>DAC

M$L$L[5F5Fs5K5K$L$L$L!	<(BKPPJFF
0@0@0E0EFFF !$Q//4DRaR4HBPQ74R4R4R$.::{{{<-V444rz0:<<<CD---		?DDD	a&C  '*ssCHRLL9;;@C	DDG	a&C  7:ssHHEGG	GGGs#1F
G0GGcRtj|\}}tjdkr|dkr|dz}tj|r|S|[tjdd}|9	tjd}n##ttf$rtj}YnwxYw|sdS|tj
}|D]E}tj||}tj|r|cSFdS)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)r*pathsplitextr#r$isfiler+r,confstrAttributeError
ValueErrordefpathr(pathsepr!)r8rD_extpathspfs       rr"r"_s)W

j
)
)FAscVmm&(
	w~~j!!|z~~fd++<
"z),,"J/
"
"
"z
"tJJrz""E
GLLJ''
7>>!	HHH	4sBB98B9)rrr)N)__doc__r#r*r.distutils.errorsrrdistutils.debugrr&rr$r%r)r?r"rrr<module>rTs


				GGGGGGGG!!!!!!<8KEGEGEGEGP""""""r