
    ,jH                     b   d Z ddlZddlZddlZddlmZ dZ ej        dd          Z ej	        d          du Z
ee
rd	Z ee          d
 Zd ZeedZerS ej                    dk    rdgdgdZ ej        eeddg           dS  ej        ee          Zese
r ede           dS dS dS )a   Set up sys.path to include ParaView, if available

This checks the TRAME_PARAVIEW environment variable and the --paraview
argument in sys.argv. The specified path will then be automatically
searched for the python library directory and, if found, it will be
added to the sys.path so that the ParaView libraries may be imported.

To use: specify one of the following, and then import this file:
 - `--paraview /path/to/paraview/release` argument
 - environment variable `TRAME_PARAVIEW=/path/to/paraview/release`
    N   )utilsFz
--paraviewTRAME_PARAVIEWTRAME_PARAVIEW_FAIL_SILENTLYztrame.env.paraview was imported, but the paraview location was not defined. Define it with either the argument '--paraview <path>' or the TRAME_PARAVIEW environment variablec                  D    t           j        d d         \  } }d|  d| dgS )N   z
lib/python.z/site-packages)sysversion_info)py_majorpy_minors     L/DATA/AppData/hermes/venv/lib/python3.11/site-packages/trame/env/paraview.pylinux_pathsr   %   s4    )"1"-Hh<<<H<<<==    c                      dgS )Nzbin/Lib/site-packages r   r   r   windows_pathsr   *   s    #$$r   )LinuxWindowsDarwinzContents/PythonzContents/Libraries)
PYTHONPATHDYLD_LIBRARY_PATHPV_VENVVTK_VENVz+Failed to add paraview python libraries at )__doc__osplatformr
    r   	PV_LOADEDfind_env_settingPV_HOMEgetenvRAISE_ERRORSmsg	Exceptionr   r   search_paths_dictsystem	env_pathsrerunprepend_python_pathr   r   r   <module>r+      s  
 
 
			  



      	
 %
 /?
@
@ry788D@
?|?	2 
 )C..
> > >
% % %
   
  
UxH$$,-"6!7
 
	 	GYJ(?@@@@@-E-g7HII	 	U\ 	U)S'SSTTT
U 
U	U 	U 	U 	Ur   