|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/22697/root/usr/lib64/python2.4/distutils/ |
Upload File : |
mň
=5Dc @ s d Z d Z d k Z d k Z d k Z d k Td k l Z d d d d Z d Z d d d d Z
d d d d
Z d d d d Z d d Z d S(
sě 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.
s1 $Id: spawn.py 37828 2004-11-10 22:23:15Z loewis $N( t *( s logi i c C s t i d j o t | | d | n_ t i d j o t | | d | n8 t i d j o t | | d | n t d t i d S( s 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.
t posixt dry_runt ntt os2s1 don't know how to spawn programs on platform '%s'N( t ost namet _spawn_posixt cmdt search_pathR t _spawn_ntt
_spawn_os2t DistutilsPlatformError( R R t verboseR ( ( t' /usr/lib64/python2.4/distutils/spawn.pyt spawn s c C sT xM t t | D]9 } t i | | d d j o d | | | | <q q W| S( sŠ Quote command-line arguments for DOS/Windows conventions: just
wraps every argument which contains blanks in double quotes, and
returns a new argument list.
t i˙˙˙˙s "%s"N( t ranget lent argst it stringt find( R R ( ( R t _nt_quote_args1 s c C sŢ | d } t | } | o t | p | } n t i t i | g | d d | p{ y t
i t
i | | } Wn0 t j
o$ } t d | d | d f n X| d j o t d | d | f qÚ n d S( Ni i R s command '%s' failed: %si˙˙˙˙s' command '%s' failed with exit status %d( R t
executableR R t find_executablet logt infoR t joinR R t spawnvt P_WAITt rct OSErrort exct DistutilsExecError( R R R
R R R R! ( ( R R
B s
$
c C sĺ | d } | o t | p | } n t i t i | g | d d | p y t i
t i | | } Wn0 t
j
o$ } t d | d | d f n X| d j o. d | d | f GHt d | d | f qá n d S( Ni i R s command '%s' failed: %si˙˙˙˙s' command '%s' failed with exit status %d( R R R R R R R R R R R R R R R! R"