ó
UJc           @   sn   d  d l  Z  d  d l Z y d  d l Z Wn d Z n Xd  d l m Z d  d l m Z d g Z d   Z	 d S(   i˙˙˙˙N(   t   getResource(   t   sdlmain_osxt   Video_AutoInitc          C   sË   t  r1 t  j   r1 t j   s1 t d   q1 n  t j   s} y t d  j   }  Wn t k
 rl d  }  n Xt j
 |   n  t j   d k rÇ t t j  d k rÇ t j t j j t j d   n  t S(   NsR   Can not access the window manager.  Use py2app or execute with the pythonw script.s   pygame_icon.tifft   /i   i    (   t   MacOSt   WMAvailableR   t   WMEnablet   ImportErrort"   RunningFromBundleWithNSApplicationR    t   readt   IOErrort   Nonet   InstallNSApplicationt   ost   getcwdt   lent   syst   argvt   chdirt   patht   dirnamet   True(   t   default_icon_data(    (    s:   c:\mingw\msys\1.0\newbuild\install\python\pygame\macosx.pyR      s    
'#(
   R   R   R   R   t   pygame.pkgdataR    t   pygameR   t   __all__R   (    (    (    s:   c:\mingw\msys\1.0\newbuild\install\python\pygame\macosx.pyt   <module>   s   
	