ó
 Qc           @   s+   d  Z  d d l Z d d l Z d   Z d S(   s-  
Replace the code of real 'site' module by fake code doing nothing.

The real 'site' does some magic to find paths to other possible
Python modules. We do not want this behaviour for frozen applications.

Fake 'site' makes PyInstaller to work with distutils and to work inside
virtualenv environment.
i˙˙˙˙Nc         C   sm   t  j j t  j j t j   } t  j j | d d  } t j j j	 |  } t j
 j j d | |  }  |  S(   Nt   fakes   fake-site.pyt   site(   t   ost   patht   abspatht   dirnamet   PyInstallert   __file__t   joint   utilst   misct   get_code_objectt   dependt   modulest   PyModule(   t   modt   pyi_dirt	   fake_filet   new_code_object(    (    s^   C:\Users\Salopaasi\My Documents\pyinstaller-pyinstaller-275d4c9\PyInstaller\hooks\hook-site.pyt   hook   s
    !(   t   __doc__R   R   R   (    (    (    s^   C:\Users\Salopaasi\My Documents\pyinstaller-pyinstaller-275d4c9\PyInstaller\hooks\hook-site.pyt   <module>   s   