+
    & iG  c                   sB    ^ RI Ht ^ RIHt ^ RIHt R R ltR R ltR# )	i    )	Namespace)Path)Anyc          	      s    V ^8  d   QhR\         \        \        3,          R\        R\        \         \        \        3,          \        \        ,          3,          /# )   envargsreturn)dictstrr    ZtuplelistZformat   "4/usr/lib/python3.14/site-packages/umu/umu_plugins.py__annotate__r      sB     = =	c3h=(=
4S>49$%=    c                s    ^ RI p\        TRR4      p. pT'       g   R\        T4       R2p\	        T4      h\        T4      P                  4       pTP                  4       '       g   RT R2p\        T4      hTP                  RR	7      ;_uu_ 4       pTP                  T4      pRRR4       \        X4       TR
,          R,          T R&   TR
,          R,          T R&   TR
,          R,          T R&   TR
,          P                  RR4      T R&   TR
,          P                  RR4      T R&   \        TR
,          P                  R4      \        4      '       d   TR
,          R,          pY3# \        TR
,          P                  R4      \        4      '       d    TR
,          R,          P!                  R4      pY3#   \         d    Rp\        T4      hi ; i  + '       g   i     EL6; i)a  Read key/values in a TOML file and map them to umu env. variables.

In the TOML file, certain keys map to environment variables:

proton  -> $PROTONPATH
prefix  -> $WINEPREFIX
game_id -> $GAMEID
exe     -> $EXE

-which will be used as a base to create other required env variables for
the Steam Runtime (e.g., STEAM_COMPAT_INSTALL_PATH). To note, some features
are lost in this usage, such as running winetricks verbs and automatic
updates to Proton.
Nztomllib requires Python 3.11configZ z*Property 'config' does not exist in type ''z&Path to configuration is not a file: 'Zrb)ZmodeumuprefixZ
WINEPREFIXprotonZ
PROTONPATHexeZEXEZgame_idZGAMEIDZstoreZSTOREZlaunch_argsZ )tomllibZModuleNotFoundErrorZgetattrZtypeZAttributeErrorr   
expanduseris_fileFileNotFoundErrorZopenZload_check_env_tomlZget
isinstancer	   r   Zsplit)	r   r   r   errr   ZoptsZconfig_pathZfiletomls	   &&       r   set_env_tomlr      s   "' $"-FD?T
|1MS!!v,))+K  ;F81E$$			t		$	$||D! 
% D UH-CUH-CeU#CJKOOIr2CM;??7B/CL$u+//-0$77E{=) 9 
DKOOM2C	8	8E{=)//49S  '1!#&&'. 
%	$	$s   F4 G4GG!	c                st    V ^8  d   QhR\         \        \        3,          R\         \        \        3,          /# )r   r   r   )r   r   r   r
   r   r   r   r   F   s*     - -$sCx. -T#s(^ -r   c                s   Rp. ROpW9  d   RV R2p\        V4      hV F  pW@V,          9  d   RV RV R	2p\        V4      h\        W,          V,          4      P                  4       pVR8X  d8   VP                  4       '       g"   R
V RW,          V,           R	2p\	        V4      hVR8X  d   VP                  4       '       d"   VR8X  g   K  VP                  4       '       d   K  R
V RW,          V,           R	2p\        V4      h	  W,          P                  4        F<  w  rFV'       d   K  \        V\        4      '       g   K'  RV RV RV R	2p\        V4      h	  V # )zCheck for required or empty key/value pairs in user configuration file.

Casing matters in the config and we do not check if the game id is set.
r   r   r   r   zTable 'z' in TOML is not defined.zThe following key in table '[z]' is required: 'r   zValue for key 'z' is not a file: 'z' is not a directory: 'zValue is empty for 'z0'.
Please specify a value or remove the entry: 'Z=)r   r   r   )
Z
ValueErrorr   r   r   r   Zis_dirZNotADirectoryErrorZitemsr   r   )r   ZtableZrequired_keysr   ZkeyZpathZvals   &      r   r   r   F   sg    E:MUG#<=o 5k!6ug=NseSTUCS/!DK$%002
 %<(-?C@P?QQRSC#C((8ODKKMM8ODKKMM(-DT[QTEUDVVWXC$S))) . K%%'sz#s++&se ,@@CuAcU!M  S/! ( Kr   N)Zargparser    Zpathlibr   Ztypingr   r   r   ) r   r   <module>r      s      =@-r   