
    8f                         d dl Z d dlZd dlZd dlZd dlZd dlZddlmZ ddlm	Z	  ej                  ej                  j                  ej                  j                  e      d              ej                          d Zy)    N   )	BasicGame)BasicIniGamelibc            	         g } t         j                  j                  t         j                  j                  t                    }t        j
                  t         j                  j                  |dd            D ]  }| j                  t        |              t        j
                  t         j                  j                  |dd            D ]  }t         j                  j                  |t         j                  j                  |d            }|dk(  rG	 t        j                  d|d d z   t              }t'              D ]]  }t)        ||      st+        ||      }t-        |t.              s-t1        |t2              s>|t2        usG	 | j                   |              _  | S # t        $ r5}t        dj                  ||      t         j"                         Y d }~d }~wt$        $ r5}t        dj                  ||      t         j"                         Y d }~d }~ww xY w# t$        $ r6}t        d	j                  ||      t         j"                         Y d }~d }~ww xY w)
Ngamesz*.iniz*.pyz__init__.pyz.games.zFailed to import module {}: {})filezFailed to instantiate {}: {})ospathabspathdirname__file__globjoinappendr   relpath	importlibimport_module__package__ImportErrorprintformatsysstderr	Exceptiondirhasattrgetattr
isinstancetype
issubclassr   )game_pluginscurpathr
   module_pmoduleenameobjs           hC:\Program Files (x86)/Steam/steamapps/common/Skyrim Special Edition/MO2/plugins\basic_games\__init__.pycreatePluginsr+      s   +-L ggoobggooh78G 		"'',,wAB 0L./0 		"'',,w@A 77??4gw)GH}$	Y,,Y#2-FTF K 	Dvt$fd+sD)"3	29,$++CE2	< -  	Y299(AFSZZXX 	Y299(AFSZZXX	Y % :AA$J!$ s<    F!H!	H*+GH&+HH	I'+II)r   r   r   siter   typing
basic_gamer   basic_game_inir   
addsitedirr   r   r   r   setupr+        r*   <module>r4      s\      	  
  ! ( RWW__X6> ? 	 *r3   