%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/subprocess.pyo


Mac	@sdZddlZejdkZddlZddlZddlZddlZddlZddl	Z	de
fdYZerddlZddl
Z
ddlZdfdYZdfd	YZnoddlZeed
ZyddlZWnek
reZnXddlZddlZeeddZd
ddddddgZerddlmZmZmZmZmZm Z m!Z!m"Z"ej#ddddddddgnyej$dZ%Wn
dZ%nXgZ&dZ'dZ(dZ)d Z*d!Z+d"Z,d#Z-d$Z.d%Z/d
e0fd&YZ1d'Z2d(Z3e4d)krer|e3ne2ndS(*sSubprocesses with accessible I/O streams

This module allows you to spawn processes, connect to their
input/output/error pipes, and obtain their return codes.

For a complete description of this module see the Python documentation.

Main API
========
call(...): Runs a command, waits for it to complete, then returns
    the return code.
check_call(...): Same as call() but raises CalledProcessError()
    if return code is not 0
check_output(...): Same as check_call() but returns the contents of
    stdout instead of a return code
Popen(...): A class for flexibly executing a command in a new process

Constants
---------
PIPE:    Special value that indicates a pipe should be created
STDOUT:  Special value that indicates that stderr should go to stdout
iNtwin32tCalledProcessErrorcBs#eZdZddZdZRS(sThis exception is raised when a process run by check_call() or
    check_output() returns a non-zero exit status.

    Attributes:
      cmd, returncode, output
    cCs||_||_||_dS(N(t
returncodetcmdtoutput(tselfRRR((s&/usr/local/lib/python2.7/subprocess.pyt__init__3s		cCsd|j|jfS(Ns-Command '%s' returned non-zero exit status %d(RR(R((s&/usr/local/lib/python2.7/subprocess.pyt__str__7sN(t__name__t
__module__t__doc__tNoneRR(((s&/usr/local/lib/python2.7/subprocess.pyR,stSTARTUPINFOcBs&eZdZdZdZdZdZRS(iN(RR	tdwFlagsRt	hStdInputt
hStdOutputt	hStdErrortwShowWindow(((s&/usr/local/lib/python2.7/subprocess.pyR?s
t
pywintypescBseZeZRS((RR	tIOErrorterror(((s&/usr/local/lib/python2.7/subprocess.pyREstpolltPIPE_BUFitPopentPIPEtSTDOUTtcallt
check_calltcheck_output(tCREATE_NEW_CONSOLEtCREATE_NEW_PROCESS_GROUPtSTD_INPUT_HANDLEtSTD_OUTPUT_HANDLEtSTD_ERROR_HANDLEtSW_HIDEtSTARTF_USESTDHANDLEStSTARTF_USESHOWWINDOWRRRR R!R"R#R$tSC_OPEN_MAXicCs_xXtD]O}|jdtj}|dk	rytj|WqWtk
rSqWXqqWdS(Nt
_deadstate(t_activet_internal_polltsystmaxintRtremovet
ValueError(tinsttres((s&/usr/local/lib/python2.7/subprocess.pyt_cleanupks
icGsVxOtrQy||SWqttfk
rM}|jtjkrGqnqXqWdS(N(tTruetOSErrorRterrnotEINTR(tfunctargste((s&/usr/local/lib/python2.7/subprocess.pyt_eintr_retry_callzs	cCsi	dd6dd6dd6dd6d	d
6dd6d
d6dd6dd6}g}xP|jD]B\}}ttj|}|dkrX|jd||qXqXWttjddkr|jdnx"tjD]}|jd|qW|S(snReturn a list of command-line arguments reproducing the current
    settings in sys.flags and sys.warnoptions.tdtdebugtOtoptimizetBtdont_write_bytecodetstno_user_sitetStno_sitetEtignore_environmenttvtverbosetbt
bytes_warningt3tpy3k_warningit-thash_randomizations-Rs-W(titemstgetattrR)tflagstappendtwarnoptions(tflag_opt_mapR5tflagtoptRD((s&/usr/local/lib/python2.7/subprocess.pyt_args_from_interpreter_flagss(
cOst||jS(sRun command with arguments.  Wait for command to complete, then
    return the returncode attribute.

    The arguments are the same as for the Popen constructor.  Example:

    retcode = call(["ls", "-l"])
    (Rtwait(t	popenargstkwargs((s&/usr/local/lib/python2.7/subprocess.pyRscOsSt||}|rO|jd}|dkr=|d}nt||ndS(sSRun command with arguments.  Wait for command to complete.  If
    the exit code was zero then return, otherwise raise
    CalledProcessError.  The CalledProcessError object will have the
    return code in the returncode attribute.

    The arguments are the same as for the Popen constructor.  Example:

    check_call(["ls", "-l"])
    R5iN(RtgetRR(RVRWtretcodeR((s&/usr/local/lib/python2.7/subprocess.pyRs

cOsd|krtdntdt||}|j\}}|j}|r|jd}|dkr||d}nt||d|n|S(sRun command with arguments and return its output as a byte string.

    If the exit code was non-zero it raises a CalledProcessError.  The
    CalledProcessError object will have the return code in the returncode
    attribute and output in the output attribute.

    The arguments are the same as for the Popen constructor.  Example:

    >>> check_output(["ls", "-l", "/dev/null"])
    'crw-rw-rw- 1 root root 1, 3 Oct 18  2007 /dev/null\n'

    The stdout argument is not allowed as it is used internally.
    To capture standard error in the result, use stderr=STDOUT.

    >>> check_output(["/bin/sh", "-c",
    ...               "ls -l non_existent_file ; exit 0"],
    ...              stderr=STDOUT)
    'ls: non_existent_file: No such file or directory\n'
    tstdouts3stdout argument not allowed, it will be overridden.R5iRN(R,RRtcommunicateRRXRR(RVRWtprocessRt
unused_errRYR((s&/usr/local/lib/python2.7/subprocess.pyRs
cCsGg}t}x+|D]#}g}|r5|jdnd|kpQd|kpQ|}|rj|jdnx|D]}|dkr|j|qq|dkr|jdt|dg}|jdqq|r|j|g}n|j|qqW|r|j|n|r|j||jdqqWdj|S(s
    Translate a sequence of arguments into a command line
    string, using the same rules as the MS C runtime:

    1) Arguments are delimited by white space, which is either a
       space or a tab.

    2) A string surrounded by double quotation marks is
       interpreted as a single argument, regardless of white space
       contained within.  A quoted string can be embedded in an
       argument.

    3) A double quotation mark preceded by a backslash is
       interpreted as a literal double quotation mark.

    4) Backslashes are interpreted literally, unless they
       immediately precede a double quotation mark.

    5) If backslashes immediately precede a double quotation mark,
       every pair of backslashes is interpreted as a literal
       backslash.  If the number of backslashes is odd, the last
       backslash escapes the next double quotation mark as
       described in rule 3.
    t s	t"s\is\"t(tFalseROtlentextendtjoin(tseqtresultt	needquotetargtbs_buftc((s&/usr/local/lib/python2.7/subprocess.pytlist2cmdlines4


	
cBseZdZeZdd!d!d!d!d!eed!d!ed!dd
ZdZej	dZ
d!dZdZe
rdZdZd	Zd
Zd!ejejejdZdZd
ZdZdZdZeZndZedZdZdZ e!r)e!j"Z#nde$fdYZ%e%Z#dZe&j'e&j(e&j)e&j*e&j+e&j,dZ-d!e&j.e&j/e&j0e1j2dZdZdZdZ3dZ4dZdZd ZRS("s Execute a child program in a new process.

    For a complete description of the arguments see the Python documentation.

    Arguments:
      args: A string, or a sequence of program arguments.

      bufsize: supplied as the buffering argument to the open() function when
          creating the stdin/stdout/stderr pipe file objects

      executable: A replacement program to execute.

      stdin, stdout and stderr: These specify the executed programs' standard
          input, standard output and standard error file handles, respectively.

      preexec_fn: (POSIX only) An object to be called in the child process
          just before the child is executed.

      close_fds: Controls closing or inheriting of file descriptors.

      shell: If true, the command will be executed through the shell.

      cwd: Sets the current directory before the child is executed.

      env: Defines the environment variables for the new process.

      universal_newlines: If true, use universal line endings for file
          objects stdin, stdout and stderr.

      startupinfo and creationflags (Windows only)

    Attributes:
        stdin, stdout, stderr, pid, returncode
    icCstt|ttfs+tdntr|d
k	rLtdn|r|d
k	sv|d
k	sv|d
k	rtdqn6|
d
k	rtdn|dkrtdnd
|_d
|_	d
|_
d
|_d
|_||_
|j|||\\}}}}}}}yA|j|||||
|||
||	|||||||Wn{tk
rtj\}}}xF|D]>}y$tr|jn
tj|Wqtk
rqXqW|||nXtr^|d
k	r
tj|jd}n|d
k	r4tj|jd}n|d
k	r^tj|jd}q^n|d
k	rtj|d||_n|d
k	r|rtj|d||_	qtj|d	||_	n|d
k	r|rtj|d||_
qtj|d	||_
nd
S(sCreate new Popen instance.sbufsize must be an integers0preexec_fn is not supported on Windows platformssSclose_fds is not supported on Windows platforms if you redirect stdin/stdout/stderrs2startupinfo is only supported on Windows platformsis4creationflags is only supported on Windows platformstwbtrUtrbN(R/t
isinstancetinttlongt	TypeErrort	mswindowsRR,tstdinRZtstderrtpidRtuniversal_newlinest_get_handlest_execute_childt	ExceptionR)texc_infotClosetostclosetEnvironmentErrortmsvcrttopen_osfhandletDetachtfdopen(RR5tbufsizet
executableRtRZRut
preexec_fnt	close_fdstshelltcwdtenvRwtstartupinfot
creationflagstp2creadtp2cwritetc2preadtc2pwriteterrreadterrwritetto_closetexc_typet	exc_valuet	exc_tracetfd((s&/usr/local/lib/python2.7/subprocess.pyRNsl						-	



cCs(|jdd}|jdd}|S(Ns
s
s
(treplace(Rtdata((s&/usr/local/lib/python2.7/subprocess.pyt_translate_newlinesscCsL|js
dS|jd||jdkrHtdk	rHtj|ndS(NR&(t_child_createdR(RRR'RO(Rt_maxint((s&/usr/local/lib/python2.7/subprocess.pyt__del__s
	cCs |j|j|jgjddkrd}d}|jr|ry|jj|Wqtk
r}|jtjkr|jtj	krqqXn|jj
nV|jrt|jj}|jj
n+|jrt|jj}|jj
n|j
||fS|j|S(sfInteract with process: Send data to stdin.  Read data from
        stdout and stderr, until end-of-file is reached.  Wait for
        process to terminate.  The optional input argument should be a
        string to be sent to the child process, or None, if no data
        should be sent to the child.

        communicate() returns a tuple (stdout, stderr).iN(RtRZRutcountRtwriteRR2tEPIPEtEINVALR~R7treadRUt_communicate(RtinputRZRuR6((s&/usr/local/lib/python2.7/subprocess.pyR[s('	$
		

cCs
|jS(sSCheck if child process has terminated. Set and return returncode
        attribute.(R((R((s&/usr/local/lib/python2.7/subprocess.pyRscCs5t}|dkr7|dkr7|dkr7d|fSd\}}d\}}d\}	}
|dkrtjtj}|dkrtjdd\}}qnc|tkrtjdd\}}n<t|tt	frt
j|}nt
j|j}|j
|}|j||tkr>|j|n|dkrtjtj}|dkrtjdd\}}qnc|tkrtjdd\}}n<t|tt	frt
j|}nt
j|j}|j
|}|j||tkr!|j|n|dkritjtj}
|
dkrtjdd\}}
qnx|tkrtjdd\}	}
nQ|tkr|}
n<t|tt	frt
j|}
nt
j|j}
|j
|
}
|j|
|tkr|j|	n|||||	|
f|fS(s|Construct and return tuple with IO objects:
            p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite
            iN(NNNNNN(NN(NN(NN(tsetRt_subprocesstGetStdHandleRt
CreatePipeRRoRpRqRt
get_osfhandletfilenot_make_inheritabletaddR R!R(RRtRZRuRRRRRRRt_((s&/usr/local/lib/python2.7/subprocess.pyRxsd	$


	
cCs+tjtj|tjddtjS(s2Return a duplicate of handle, which is inheritableii(RtDuplicateHandletGetCurrentProcesstDUPLICATE_SAME_ACCESS(Rthandle((s&/usr/local/lib/python2.7/subprocess.pyR6scCstjjtjjtjdd}tjj|stjjtjjtjd}tjj|st	dqn|S(s,Find and return absolut path to w9xpopen.exeisw9xpopen.exesZCannot locate w9xpopen.exe, which is needed for Popen to work with your shell or platform.(
R}tpathRdtdirnameRtGetModuleFileNametexistsR)texec_prefixtRuntimeError(Rtw9xpopen((s&/usr/local/lib/python2.7/subprocess.pyt_find_w9xpopen=s			c
st|tjs!t|}n|dkr9t}nd|||fkr~|jtjO_||_	||_
||_n|
r(|jtjO_tj
|_tjjdd}dj||}tjdkstjj|jdkr(|j}d||f}|	tjO}	q(nfd}zjy>tj||ddt||	|||	\}}}}Wn%tjk
r}t|jnXWd|dk	r||n|dk	r||n|dk	r||nXt|_ ||_!||_"|j#dS(	s$Execute program (MS Windows version)tCOMSPECscmd.exes
{} /c "{}"Iscommand.coms"%s" %scs|jj|dS(N(R|R+(R(R(s&/usr/local/lib/python2.7/subprocess.pyt_close_in_parentws
N($RottypestStringTypesRkRRR
RR#RRRR$R"RR}tenvironRXtformatt
GetVersionRtbasenametlowerRRt
CreateProcessRpRRtWindowsErrorR5R0Rt_handleRvR|(RR5RRRRRRwRRRRRRRRRRtcomspecRRthpthtRvttidR6((Rs&/usr/local/lib/python2.7/subprocess.pyRyNsR		


			cCsF|jdkr?||jd|kr?||j|_q?n|jS(sCheck if child process has terminated.  Returns returncode
            attribute.

            This method is called by __del__, so it can only refer to objects
            in its local scope.

            iN(RRR(RR&t_WaitForSingleObjectt_WAIT_OBJECT_0t_GetExitCodeProcess((s&/usr/local/lib/python2.7/subprocess.pyR(scCsD|jdkr=tj|jtjtj|j|_n|jS(sOWait for child process to terminate.  Returns returncode
            attribute.N(RRRtWaitForSingleObjectRtINFINITEtGetExitCodeProcess(R((s&/usr/local/lib/python2.7/subprocess.pyRUs

cCs|j|jdS(N(ROR(Rtfhtbuffer((s&/usr/local/lib/python2.7/subprocess.pyt
_readerthreadscCsd}d}|jrYg}tjd|jd|j|f}|jt|jn|jrg}tjd|jd|j|f}|jt|jn|j	r%|dk	ry|j	j
|Wqtk
r}|jtj
krq|jtjkrqqXn|j	jn|jr;|jn|jrQ|jn|dk	rj|d}n|dk	r|d}n|jrttdr|r|j|}n|r|j|}qn|j||fS(NttargetR5itnewlines(RRZt	threadingtThreadRt	setDaemonR0tstartRuRtRRR2RRR~RdRwthasattrtfileRRU(RRRZRut
stdout_threadt
stderr_threadR6((s&/usr/local/lib/python2.7/subprocess.pyRsP	

	

	
	
	



cCs|tjkr|jne|tjkrDtj|jtjn=|tjkrltj|jtjntdj	|dS(s)Send a signal to the process
            sUnsupported signal: {}N(
tsignaltSIGTERMt	terminatetCTRL_C_EVENTR}tkillRvtCTRL_BREAK_EVENTR,R(Rtsig((s&/usr/local/lib/python2.7/subprocess.pytsend_signals
cCsvytj|jdWnXtk
rq}|jdkr>ntj|j}|tjkren||_nXdS(s#Terminates the process
            iiN(RtTerminateProcessRR1twinerrorRtSTILL_ACTIVER(RR6trc((s&/usr/local/lib/python2.7/subprocess.pyRscCst}d\}}d\}}d\}	}
|dkr<n^|tkrp|j\}}|j||fn*t|ttfr|}n|j}|dkrn^|tkr|j\}}|j||fn*t|ttfr|}n|j}|dkrn|tkrJ|j\}	}
|j|	|
fn]|t	kr}|dk	rk|}
qt
jj}
n*t|ttfr|}
n|j}
|||||	|
f|fS(s|Construct and return tuple with IO objects:
            p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite
            N(NN(NN(NN(RRRtpipe_cloexectupdateRoRpRqRRR)t
__stdout__(RRtRZRuRRRRRRR((s&/usr/local/lib/python2.7/subprocess.pyRxsF					cCs~y
tj}Wntk
r&d}nXtj|tj}|r_tj|tj||Bntj|tj||@dS(Ni(tfcntlt
FD_CLOEXECtAttributeErrortF_GETFDtF_SETFD(RRtcloexectcloexec_flagtold((s&/usr/local/lib/python2.7/subprocess.pyt_set_cloexec_flagNs


cCs6tj\}}|j||j|||fS(s#Create a pipe with FDs set CLOEXEC.(R}tpipeR(Rtrtw((s&/usr/local/lib/python2.7/subprocess.pyR[s

cCsttdr6tjd|tj|dtnGxDtdtD]3}||kr^qFnytj|WqFqFXqFWdS(Nt
closerangeii(RR}RtMAXFDtxrangeR~(Rtbutti((s&/usr/local/lib/python2.7/subprocess.pyt
_close_fdsgst_noop_context_managercBseZdZdZRS(cCsdS(N((R((s&/usr/local/lib/python2.7/subprocess.pyt	__enter__~R`cGsdS(N((RR5((s&/usr/local/lib/python2.7/subprocess.pyt__exit__R`(RR	RR(((s&/usr/local/lib/python2.7/subprocess.pyR{s	c!st|tjr|g}nt|}|
rVddg|}|rV||d<qVn|dkro|d}nfd}j\}}zzjtj}tj	WdQXyt
j_Wn|rtj
nnXt_jdkr0zy|
dk	r)t
j|
n|dk	rEt
j|n|dk	rat
j|nt
j||dkrt
j|}n|dks|dkrt
j|}nfd}||d||d||ddh}xL|||gD];}||kr|dkrt
j||j|qqW|dk	r`t
j|n|rp|n|rjd	|n|dkrt
j||nt
j|||Wn\tj\}}}tj|||}d
j||_t
j|tj|nXWdt
j dXn|rCtj
nWdt
j|Xt!t
j"|d}g}x,|r|j#|t!t
j"|d}qsWd
j|}Wd|dk	r|
dk	r||n|dk	r|dk	r||n|dk	r!|dk	r!||nt
j|X|d
kryt!t
j$jdWn+t%k
r}|j&t&j'krqnXtj(|} | ndS(
sExecute program (POSIX version)s/bin/shs-cicstj|j|dS(N(R}R~R+(R(R(s&/usr/local/lib/python2.7/subprocess.pyRs
NicsB||krj|tn|dk	r>tj||ndS(N(RRaRR}tdup2(taRF(R(s&/usr/local/lib/python2.7/subprocess.pyt_dup2siRR`ii()RoRRtlistRRt_disabling_gc_locktgct	isenabledtdisableR}tforkRvtenableR0RR~tdupRtchdirRtexecvptexecvpeR)R{t	tracebacktformat_exceptionRdtchild_tracebackRtpickletdumpst_exitR7RROtwaitpidR1R2tECHILDtloads(!RR5RRRRRRwRRRRRRRRRRRterrpipe_readt
errpipe_writetgc_was_enabledRtclosedRRRttbt	exc_linesRtpickle_bitsR6tchild_exception((RRs&/usr/local/lib/python2.7/subprocess.pyRys


	



	

		!	




cCsl||r|||_nI||r=|||_n+||r\|||_ntddS(NsUnknown child exit status!(RR(Rtstst_WIFSIGNALEDt	_WTERMSIGt
_WIFEXITEDt_WEXITSTATUSt_WIFSTOPPEDt	_WSTOPSIG((s&/usr/local/lib/python2.7/subprocess.pyt_handle_exitstatussc	Cs|jdkry;||j|\}}||jkrI|j|nWq|k
r}|dk	rt||_n|j|krd|_qqXn|jS(sCheck if child process has terminated.  Returns returncode
            attribute.

            This method is called by __del__, so it cannot reference anything
            outside of the local scope (nor can any methods it calls).

            iN(RRRvR'R2(	RR&t_waitpidt_WNOHANGt	_os_errort_ECHILDRvR R6((s&/usr/local/lib/python2.7/subprocess.pyR(+s	cCsx|jdkry"ttj|jd\}}Wn:tk
rp}|jtjkr^n|j}d}nX||jkr|j	|qqW|jS(sOWait for child process to terminate.  Returns returncode
            attribute.iN(
RRR7R}RRvR1R2RR'(RRvR R6((s&/usr/local/lib/python2.7/subprocess.pyRUFs"	
cCs|jr/|jj|s/|jjq/ntrM|j|\}}n|j|\}}|dk	rdj|}n|dk	rdj|}n|jrt	t
dr|r|j|}n|r|j|}qn|j||fS(NR`R(
RttflushR~t	_has_pollt_communicate_with_pollt_communicate_with_selectRRdRwRRRRU(RRRZRu((s&/usr/local/lib/python2.7/subprocess.pyR[s$	

cs>d}d}ii}tjfd}fd}|jrm|rm||jtjntjtjB}|jr||j|g||jj<}n|j	r||j	|g||j	j<}nd}xHr3yj}	Wn5tj
k
r9}
|
jdtj
kr3qnnXx|	D]\}}|tj@r|||t!}
y|tj||
7}Wn5tk
r}
|
jtjkr||qq,X|t|kr,||q,qA||@r"tj|d}|s||n||j|qA||qAWqW||fS(Ncs*j|j|||j<dS(N(tregisterR(tfile_objt	eventmask(tfd2filetpoller(s&/usr/local/lib/python2.7/subprocess.pytregister_and_appendscs,j||jj|dS(N(t
unregisterR~tpop(R(R3R4(s&/usr/local/lib/python2.7/subprocess.pytclose_unregister_and_removes
ii(RtselectRRttPOLLOUTtPOLLINtPOLLPRIRZRRuRR5R2R3t	_PIPE_BUFR}RR1RRbRRO(RRRZRut	fd2outputR5R8tselect_POLLIN_POLLPRItinput_offsettreadyR6RtmodetchunkR((R3R4s&/usr/local/lib/python2.7/subprocess.pyR.|sT			



cCsg}g}d}d}|jr:|r:|j|jn|jr\|j|jg}n|jr~|j|jg}nd}x|s|ry"tj||g\}}}	Wn5tjk
r}
|
jdtj	krqnnX|j|kr|||t
!}ytj|jj
|}WnHtk
rv}
|
jtjkrp|jj|j|jqqX||7}|t|kr|jj|j|jqn|j|krtj|jj
d}
|
dkr|jj|j|jn|j|
n|j|krtj|jj
d}
|
dkrr|jj|j|jn|j|
qqW||fS(NiiR`(RRtRORZRuR9RR5R2R3R=R}RRR1RR~R+RbR(RRtread_sett	write_setRZRuR@trlisttwlisttxlistR6RCt
bytes_writtenR((s&/usr/local/lib/python2.7/subprocess.pyR/s\				"




cCstj|j|dS(s)Send a signal to the process
            N(R}RRv(RR((s&/usr/local/lib/python2.7/subprocess.pyRscCs|jtjdS(s/Terminate the process with SIGTERM
            N(RRR(R((s&/usr/local/lib/python2.7/subprocess.pyRscCs|jtjdS(s*Kill the process with SIGKILL
            N(RRtSIGKILL(R((s&/usr/local/lib/python2.7/subprocess.pyRsN(5RR	R
RaRRRRR)R*RR[RRsRxRRRyRRt
WAIT_OBJECT_0RR(RURRRRRR0RRRRtLockRtobjectRR}tWIFSIGNALEDtWTERMSIGt	WIFEXITEDtWEXITSTATUSt
WIFSTOPPEDtWSTOPSIGR'RtWNOHANGRR2RR.R/(((s&/usr/local/lib/python2.7/subprocess.pyR)s`"			^	"		F			Q	
		;				4
							!	=	9		cCs(tdgdtjd}dGH|GHtjdkr`tdgdd}|jndGHtd	gdt}td
dgd|jdt}t|jdGHHd
GHytdgjGHWnFtk
r}|j	t	j
krdGHdGH|jGHq$dG|j	GHnXtj
dIJdS(NtpsRZis
Process list:tidRcSs
tjdS(Nid(R}tsetuid(((s&/usr/local/lib/python2.7/subprocess.pyt<lambda>R`sLooking for 'hda'...tdmesgtgrepthdaRtsTrying a weird file...s/this/path/does/not/exists'The file didn't exist.  I thought so...sChild traceback:tErrorsGosh.  No error.(RRR[R}tgetuidRURZtreprR1R2tENOENTRR)Ru(tplisttptp1tp2R6((s&/usr/local/lib/python2.7/subprocess.pyt_demo_posixs*
!cCsldGHtddtdt}tdd|jdt}t|jdGHdGHtd	}|jdS(
Ns%Looking for 'PROMPT' in set output...RRZRs
find "PROMPT"RtisExecuting calc...tcalc(RRR0RZR^R[RU(RbRcRa((s&/usr/local/lib/python2.7/subprocess.pyt
_demo_windows+st__main__(5R
R)tplatformRsR}RRRRR2RzRRRRRRR9RR-tImportErrorRRRRMR=t__all__RRRR R!R"R#R$RctsysconfRR'R/RRR7RTRRRRkRMRRdRfR(((s&/usr/local/lib/python2.7/subprocess.pyt<module>sp

:
						!	F	)	


Zerion Mini Shell 1.0