³ò
šõÜNc           @   sa   d  Z  d d k l Z d d k l Z e e ƒ i i d ƒ Z d e f d „  ƒ  YZ	 e	 ƒ  Z
 d S(   sj   
$Rev: 593 $
$LastChangedBy: satoon101 $
$LastChangedDate: 2011-11-26 18:14:29 -0500 (Sat, 26 Nov 2011) $
iÿÿÿÿ(   t   path(   t   ValidAddonst   filest   _LoadedConfigsc           B   s    e  Z d  Z d „  Z d „  Z RS(   s'   Class used to store loaded config filesc         C   só   | |  j o t  t |  ƒ i | ƒ Sn | i d d ƒ } | t i j o  d t i | ƒ | | f } n9 t i | d ƒ i	 ƒ  o d | } n t
 d | ƒ ‚ t | t ƒ  t ƒ  d g ƒ } |  | <t | ƒ d | i j o | i ƒ  n | S(   sA   Verify that the given item is a config file instance and store itt   _configt    s   gungame51.scripts.%s.%s.%ss   .pys   gungame51.core.cfg.files.%ss   "%s" is an invalid config filet   load(   t   superR   t   __getitem__t   replaceR   t   allt   get_addon_typet   _base_configst   joinpatht   isfilet
   ValueErrort
   __import__t   globalst   localst   reloadt   __dict__R   (   t   selft   itemt   addont   import_patht   config(    (    sS   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/cfg/loaded.pyR       s    #
c         C   sN   x4 |  D], } d |  | i  j o |  | i ƒ  q q Wt t |  ƒ i ƒ  d S(   s(   Unloads all configs within the dicionaryt   unloadN(   R   R   R   R   t   clear(   R   R   (    (    sS   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/cfg/loaded.pyR   O   s
     (   t   __name__t
   __module__t   __doc__R   R   (    (    (    sS   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/cfg/loaded.pyR      s   	/N(   R   R    t   gungame51.core.addons.validR   t   __file__t   parentR   R   t   dictR   t   LoadedConfigs(    (    (    sS   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/cfg/loaded.pys   <module>   s
   B