o
    ��bc4  �                   @   sn   d Z ddlZddlZddlZddlmZmZ ddlmZ ddl	m
Z
 ejdkr+dada
ddd	�Zd
d
d�ZdS )z�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.
�    N)�DistutilsPlatformError�DistutilsExecError)�DEBUG)�log�darwin�   c           
   
   C   sz  t | �} t�d�| �� |rdS |r t| d �}|dur || d<