OwlCyberSecurity - MANAGER
Edit File: site.pyc
� 2��ac @ s� d Z d d l Z d � Z d � Z e j d k r9 d n d Z d � Z d � Z e d � Z d � Z d � Z d � Z d � Z d � Z e � d S( s� A simple shim module to fix up things on Python 2 only. Note: until we setup correctly the paths we can only import built-ins. i����Nc C sx t � } | d t _ t _ | d t _ | d t _ | j d t � d k } t � t � t � | rt t � n d S( s2 Patch what needed, and invoke the original site.pys base-prefixs base-exec-prefixs base-executables include-system-site-packagest trueN( t read_pyvenvt syst real_prefixt base_prefixt base_exec_prefixt base_executablet gett Falset! rewrite_standard_library_sys_patht disable_user_site_packaget load_host_sitet add_global_site_package( t configt global_site_package_enabled( ( s9 /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site.pyt main s c C s� t } t t j d � d d l } d } d d l } t j d j } x] | j | � D]L } | j j | j j | | j d � � � } | t j k rU | | � qU qU Wd S( se trigger reload of site.py - now it will use the standard library instance that will take care of initt sitei����Ns ["../site-packages"] s utf-8( t __file__t reloadR t modulest ost jsont addsitedirt loadst patht abspatht joint encode( t hereR t site_packagesR t add_site_dirR t full_path( ( s9 /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site.pyR s *t win32s \t /c C s� d j t j t � } t | � � } | j � } Wd QXi } xZ | D]R } y | j d � } Wn t k rr qC qC X| | d j � | | | j � <qC W| S( s read pyvenv.cfgs {}{}pyvenv.cfgNt =i ( t formatR t prefixt sept opent readlinest indext ValueErrort strip( t config_filet file_handlert linesR t linet split_at( ( s9 /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site.pyR >