o
    IYh                     @   s2  d dl Z dZdZe jdsed e  ee jd aee j	
tdadadadadae jdr;ee jd ane ae jd	rJe jd	ae jd
rVe jd
ae jdrbe jdadatdkrde j d e j d e j d e j t d e j t d antdkrde j d e j d e j d e j t d e j t d antdkrde j d e j d e j t d e j t d an}tdkrtd e j t d e j t d e j t d an_tdkrtd e j t d e j t d e j t d  e j an=td!kr*td" e j t d# e j t d$ e j t d% antd&krHtd' e j t d( e j t d) e j t d* ae jd+rUe jd+atd,kr]d,antd-krdd.ad/azd d0lmZmZ ed ejd d aW n ey   e j	d/aY nw ed1kred2 d3d4 ZdS )5    Nalvarez$22-Mar-2011 9:53:17 AM$BIRCHz*ERROR - BIRCH environment not properly setdat BIRCH_PLATFORMBL_ImageViewerBL_PDFViewerBL_PSViewersolaris-sparcz/usr/openwin/libz/usr/libz/usr/lib/X11z/usr/dt/libz/lib-solaris-sparcz/local/lib-solaris-sparcsolaris-amd64z/lib-solaris-amd64z/local/lib-solaris-amd64sunlinux-arm64z/local/lib-linux-arm64z/lib-linux-arm64z/lib-linux-arm64/openwin/libz/lib-linux-arm64/fc4libslinux-x86_64z/local/lib-linux-x86_64z/lib-linux-x86_64z/lib-linux-x86_64/openwin/libz/lib-linux-x86_64/fc4libs
osx-x86_64z/lib-osx-x86_64z/lib-osx-x86_64/openwin/libz/local/lib-osx-x86_64z/lib-osx-x86_64/fc4libsmacos-arm64z/lib-macos-arm64z/lib-macos-arm64/openwin/libz/local/lib-macos-arm64z/lib-macos-arm64/fc4libsBL_TextEditorneditgeditzgedit_wrapper.sh~)shellconshell__main__zNot executablec                  C   s   t  d } | dv rd} n	| dkrd} nd} t  d }|dkr#d}n|dv r*d	}n	|d
v r1d}nd}d}| dkrCd}|dkrAd}|S | dkrW|d	krOd}|S |dkrUd}|S | dkre|dkrcd}|S d}|S )Nr   )SunOSr   solarisr   Darwinlinux   sparc)x86_64amd64r   )aarch64arm64r!   intelzlinux-intelr
   r   r   r   r   r   )osuname)OSPROCRESULT r(   $/home/birch/BIRCH/script/birchenv.pyautodetect_platformW   sB   r*   )r#   
__author____date__environgetprintexitstrr   pathjoin	BIRCH_DATr   r   r	   r   r   r*   	BIRCHLIBSpathsepHOMEwin32com.shellr   r   SHGetFolderPathCSIDL_APPDATAImportError
expanduser__name__r(   r(   r(   r)   <module>   sh   @@64
:
4
2


