File "spawn.cpython-37.opt-1.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python37/lib64/python3.7/multiprocessing/__pycache__/spawn.cpython-37.opt-1.pyc
File size: 6.26 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit

B

 f"@s$ddlZddlZddlZddlZddlmZmZddlmZddlm	Z	ddlm
Z
ddd	d
ddd
gZejdkrzdZ
dZneeddZ
ejdZerejejdanejadd	Zdd
ZddZddZddZd&ddZddZddZddZgZ dd Z!d!d"Z"d#d$Z#d%d
Z$dS)'N)get_start_methodset_start_method)process)	reduction)util_mainfreeze_supportset_executableget_executableget_preparation_dataget_command_lineimport_main_pathwin32Ffrozenzpythonservice.exez
python.execCs|adS)N)_python_exe)Zexer:/opt/alt/python37/lib64/python3.7/multiprocessing/spawn.pyr
)scCstS)N)rrrrrr-scCs$t|dkr|ddkrdSdSdS)z=
    Return whether commandline indicates we are forking
    rz--multiprocessing-forkTFN)len)argvrrr
is_forking4srcCshttjrdi}xBtjddD]0}|d\}}|dkrBd||<qt|||<qWtf|tdS)zE
    Run code for process object if this in not the main process
    rN=None)rsysrsplitint
spawn_mainexit)kwdsargnamevaluerrrr	>s


cKshttddr(tjdgdd|DSd}|ddd	|D;}t}tg|d
|dgSdS)zJ
    Returns prefix of command line used for spawning a child process
    rFz--multiprocessing-forkcSsg|]}d|qS)z%s=%rr).0itemrrr
<listcomp>Tsz$get_command_line.<locals>.<listcomp>z<from multiprocessing.spawn import spawn_main; spawn_main(%s)z, css|]}d|VqdS)z%s=%rNr)r#r$rrr	<genexpr>Wsz#get_command_line.<locals>.<genexpr>z-cN)getattrr
executableitemsjoinrZ_args_from_interpreter_flagsr)rprogZoptsrrrr
NscCs\tjdkr.ddl}t||}||tj}nddlm	}||j
_|}t|}t
|dS)z7
    Run code specified by data received over pipe
    rrNr)semaphore_tracker)rplatformmsvcrtrZsteal_handleZopen_osfhandleosO_RDONLYr,Z_semaphore_trackerZ_fdrr)Zpipe_handleZ
parent_pidZ
tracker_fdr.Z
new_handlefdr,Zexitcoderrrr\s
rc	Cs^tj|ddd@}dt_z$tj|}t|tj|}Wdt`XWdQRX|	S)NrbT)closefd)
r/fdopenrcurrent_process_inheritingrpickleloadprepare
_bootstrap)r2Zfrom_parentZpreparation_dataselfrrrrms
cCsttddrtddS)Nr7Fa
        An attempt has been made to start a new process before the
        current process has finished its bootstrapping phase.

        This probably means that you are not using fork to start your
        child processes and you have forgotten to use the proper idiom
        in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.)r'rr6RuntimeErrorrrrr_check_not_importing_mainys
r>cCstttjtjd}tjdk	r2tj|d<t	j
}y|d}Wnt
k
r^YnXtj||<|j||t	jtjttdt	jd}t|jdd}|dk	r||d<nft	jd	kststst|d
d}|dk	rtj
|s
tjdk	r
tj
tj|}tj
||d<|S)zM
    Return info about parent needed by child to unpickle process object
    )
log_to_stderrauthkeyN	log_levelr1)r!sys_pathsys_argvorig_dirdirstart_method__main__r!init_main_from_namer__file__init_main_from_path)r>dictrZ_log_to_stderrrr6r@Z_loggerZgetEffectiveLevelrpathcopyindex
ValueErrorORIGINAL_DIRupdaterr/getcwdrmodulesr'__spec__r-WINEXE
WINSERVICEisabsr*normpath)r!drBimain_moduleZ
main_mod_name	main_pathrrrrs>






cCsd|kr|dt_d|kr,|dt_d|krD|drDtd|kr^t|dd|krp|dt_	d|kr|dt_
d|krt|dd|kr|dt_
d	|krt|d	d
dd|krt|dnd
|krt|d
dS)zE
    Try to get current process ready to unpickle process object
    r!r@r?rArBrCrErDrFT)ZforcerHrJN)rr6r!r@rr?Z
get_loggerZsetLevelrrLrr/chdirrPr_fixup_main_from_name_fixup_main_from_path)datarrrr:s,


r:cCs~tjd}|dks|dr dSt|jdd|kr6dSt|td}t	j
|ddd}|j||tjd<tjd<dS)NrGz	.__main__r!__mp_main__T)run_nameZ	alter_sys)
rrSendswithr'rTold_main_modulesappendtypes
ModuleTyperunpyZ
run_module__dict__rQ)Zmod_namecurrent_mainr[main_contentrrrr^s


r^cCstjd}tjtj|d}|dkr.dSt|dd|krBdSt|t	
d}tj|dd}|j
||tjd<tjd<dS)NrGrZipythonrIra)rb)rrSr/rLsplitextbasenamer'rdrerfrgrhZrun_pathrirQ)r\rjZ	main_namer[rkrrrr_s


r_cCst|dS)z<
    Set sys.modules['__main__'] to module at main_path
    N)r_)r\rrrrs)NN)%r/rrhrfr1rrrcontextrr__all__r-rUrVr'r(lowerrcrLr*exec_prefixrr
rrr	r
rrr>rrdr:r^r_rrrrr<module>s>



2&