File: //usr/libexec/oracle-cloud-agent/plugins/osms/_osx_support.pyc
a
���d
U � @ s� d Z ddlZddlZddlZg d�ZdZdZdZd.dd�Zd/d
d�Z dd
� Z
dadd� Zda
dd� Zdd� Zdd� Zdadd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd,d-� ZdS )0zShared OS X support functions.� N)�compiler_fixup�customize_config_vars�customize_compiler�get_platform_osx)
�CFLAGS�LDFLAGS�CPPFLAGS�
BASECFLAGS� BLDSHARED�LDSHARED�CC�CXX� PY_CFLAGS�
PY_LDFLAGS�PY_CPPFLAGS�PY_CORE_CFLAGS�PY_CORE_LDFLAGS)r
r r r
�_OSX_SUPPORT_INITIAL_c C s� |du rt jd }|�t j�}t j�| �\}}tjdkrH|dkrH| d } t j�| �s�|D ]&}t j� || �}t j�|�rX| S qXdS | S dS )z�Tries to find 'executable' in the directories listed in 'path'.
A string listing directories separated by 'os.pathsep'; defaults to
os.environ['PATH']. Returns the complete filename or None if not found.
N�PATH�win32z.exe)
�os�environ�split�pathsep�path�splitext�sys�platform�isfile�join)�
executabler �paths�base�ext�p�f� r&