AlkantarClanX12

Your IP : 3.145.10.80


Current Path : /opt/alt/python33/lib64/python3.3/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/distutils/__pycache__/spawn.cpython-33.pyo

�
��f�!c@s�dZddlZddlZddlmZmZddlmZddlm	Z	ddddd�Z
d	d
�Zddddd�Zdddd
d�Z
ejdkr�ddlmZdadanddddd�Zddd�ZdS(u�distutils.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.
iN(uDistutilsPlatformErroruDistutilsExecError(uDEBUG(ulogicCs�t|�}tjdkr1t||d|�n]tjdkrVt||d|�n8tjdkr{t||d|�ntdtj��dS(u�Run 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.
    uposixudry_rununtuos2u1don't know how to spawn programs on platform '%s'N(ulistuosunameu_spawn_posixu	_spawn_ntu
_spawn_os2uDistutilsPlatformError(ucmdusearch_pathuverboseudry_run((u4/opt/alt/python33/lib64/python3.3/distutils/spawn.pyuspawnsuspawncCs>x7t|�D])\}}d|kr
d|||<q
q
W|S(u�Quote command-line arguments for DOS/Windows conventions.

    Just wraps every argument which contains blanks in double quotes, and
    returns a new argument list.
    u u"%s"(u	enumerate(uargsuiuarg((u4/opt/alt/python33/lib64/python3.3/distutils/spawn.pyu_nt_quote_args-su_nt_quote_argscCs	|d}t|�}|r1t|�p+|}ntjdj|g|dd���|sytjtj||�}WnQtk
r�}z1t	s�|}nt
d||jdf��WYdd}~XnX|dkrt	s�|}nt
d||f��qndS(Niu iucommand %r failed: %su%command %r failed with exit status %di����(u_nt_quote_argsufind_executableuloguinfoujoinuosuspawnvuP_WAITuOSErroruDEBUGuDistutilsExecErroruargs(ucmdusearch_pathuverboseudry_runu
executableurcuexc((u4/opt/alt/python33/lib64/python3.3/distutils/spawn.pyu	_spawn_nt=s$
'	-	u	_spawn_ntcCs|d}|r%t|�p|}ntjdj|g|dd���|sytjtj||�}WnQtk
r�}z1ts�|}nt	d||j
df��WYdd}~XnX|dkrts�|}ntjd||f�t	d||f��qndS(Niu iucommand %r failed: %su%command %r failed with exit status %di����(ufind_executableuloguinfoujoinuosuspawnvuP_WAITuOSErroruDEBUGuDistutilsExecErroruargsudebug(ucmdusearch_pathuverboseudry_runu
executableurcuexc((u4/opt/alt/python33/lib64/python3.3/distutils/spawn.pyu
_spawn_os2Us$
'	-	u
_spawn_os2udarwin(u	sysconfigcCsytjdj|��|r dS|d}|r9tjp?tj}d}tjdkr/t	dkr�t
jd�puda	t	r�dd�t	jd�D�a
q�nt	r/tjjdt	�}t
d	d�|jd�D�kr�d
|t	f}t|��nttjd|�}|r tjp&tj}q/ntj�}	|	dkry0|dkrf|||�n||||�Wn^tk
r�}
z>ts�|}ntjjd||
jf�tjd�WYdd}
~
XnXts�|}ntjjd
|�tjd�njxgytj|	d�\}	}Wnutk
r�}zUddl}
|j|
jkrcwntsr|}ntd||jdf��WYdd}~XnXtj |�r�ts�|}ntd|tj!|�f��qtj"|�r8tj#|�}|dkrdSts|}ntd||f��qtj$|�rMqqts\|}ntd||f��qdS(Nu iudarwinuMACOSX_DEPLOYMENT_TARGETucSsg|]}t|��qS((uint(u.0ux((u4/opt/alt/python33/lib64/python3.3/distutils/spawn.pyu
<listcomp>s	u _spawn_posix.<locals>.<listcomp>u.cSsg|]}t|��qS((uint(u.0ux((u4/opt/alt/python33/lib64/python3.3/distutils/spawn.pyu
<listcomp>�s	uF$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configureuunable to execute %r: %s
iu(unable to execute %r for unknown reasonsucommand %r failed: %su"command %r terminated by signal %du%command %r failed with exit status %du1unknown error executing %r: termination status %di����(%uloguinfoujoinuosuexecvpuexecvuNoneusysuplatformu_cfg_targetu	sysconfiguget_config_varusplitu_cfg_target_splituenvironugetuDistutilsPlatformErrorudictuexecvpeuexecveuforkuOSErroruDEBUGustderruwriteustrerroru_exituwaitpiduerrnouEINTRuDistutilsExecErroruargsuWIFSIGNALEDuWTERMSIGu	WIFEXITEDuWEXITSTATUSu
WIFSTOPPED(ucmdusearch_pathuverboseudry_runu
executableuexec_fnuenvu
cur_targetumy_msgupidueustatusuexcuerrnouexit_status((u4/opt/alt/python33/lib64/python3.3/distutils/spawn.pyu_spawn_posixrs�
""
		 		-			u_spawn_posixcCs�|dkrtjd}n|jtj�}tjj|�\}}tjdksdtj	dkr}|dkr}|d}ntjj
|�s�x9|D]1}tjj||�}tjj
|�r�|Sq�WdS|SdS(u�Tries 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.
    uPATHuwin32uos2u.exeN(uNoneuosuenvironusplitupathsepupathusplitextusysuplatformunameuisfileujoin(u
executableupathupathsubaseuextupuf((u4/opt/alt/python33/lib64/python3.3/distutils/spawn.pyufind_executable�s*

ufind_executable(u__doc__usysuosudistutils.errorsuDistutilsPlatformErroruDistutilsExecErrorudistutils.debuguDEBUGu	distutilsuloguspawnu_nt_quote_argsu	_spawn_ntu
_spawn_os2uplatformu	sysconfiguNoneu_cfg_targetu_cfg_target_splitu_spawn_posixufind_executable(((u4/opt/alt/python33/lib64/python3.3/distutils/spawn.pyu<module>s	T