a
    ijT                     @   sj  d Z ddlZddlZddlZddlZddlZddlZede	e
Z	e Zedkrreejejed n\edkrejg ddd	jZzeeeZW n ey   d
ZY n0 ere dkredddlT ddlT ddlT ddlT ddlT ddl T ddl!T ddl"T ddl#T ddl$m%Z% ejejedZ&ejejedZ'g Z(dd Z)e)  e* Z+dS )zPython bindings for MuJoCo.    NpkgutilWindowsz
mujoco.dllDarwin)Zsysctlz-nzsysctl.proc_translatedT)capture_outputFx86_64zYou are running an x86_64 build of Python on an Apple Silicon machine. This is not supported by MuJoCo. Please install and run a native, arm64 build of Python.)*)Rendererzinclude/mujocopluginc               
   C   sz   t tD ]j\} }}|D ]Z}t j|d dv rLttt j	| | q|dkrVqt
dt j	| | t qq
d S )N)z.dllz.dylibz.soz__init__.pyz*Ignoring non-library in plugin directory: )oswalkPLUGINS_DIRpathsplitextPLUGIN_HANDLESappendctypesCDLLjoinwarningswarnImportWarning)	directory_	filenamesfilename r   O/home/ghrups/robot-bench/.venv/lib64/python3.9/site-packages/mujoco/__init__.py_load_all_bundled_pluginsA   s    r   ),__doc__r   Zctypes.utilr   platform
subprocessr   
__import__extend_path__path____name__systemZ_SYSTEMZWinDLLr   r   dirname__file__runstdoutZproc_translatedboolintZ
is_rosetta
ValueErrormachineImportErrorZmujoco._callbacksZmujoco._constantsZmujoco._enumsZmujoco._errorsZmujoco._functionsZmujoco._renderZmujoco._specsZmujoco._structsZmujoco.gl_contextZmujoco.rendererr   ZHEADERS_DIRr   r   r   Zmj_versionString__version__r   r   r   r   <module>   sL   	
