B !xG @ s d dl Z d dlZd dlZd dlZd dlZddlmZmZmZ ddl m Z ddl mZ dgZdZ ejdkoreed d Zej dZdd Zeedoeejej Zdd ZG dd deZdS ) N ) reductionget_spawning_popenset_spawning_popen)spawn)utilPopeni Zwin32frozenFzpythonservice.exec C s | |kpt j| t j|kS )N)ospathnormcase)Zp1Zp2 r F/opt/alt/python37/lib64/python3.7/multiprocessing/popen_spawn_win32.py_path_eq s r _base_executablec G s x| D ]}t | qW d S )N)_winapiCloseHandle)Zhandleshandler r r _close_handles s r c @ sJ e Zd ZdZdZdd Zdd Zddd Zd d Zdd Z e Z dd ZdS )r z@ Start a subprocess to run the code of a process object r c C sP t |j}td d\}}t|d}t jt |d}d dd |D }t }trt |tjrtj}tj }tj|d<