
    MZe                    B    d Z ddlmZ ddlmZ ddlmZ  G d de      Zy)	zSource for pytool.toml files.    )annotations)Path   )	PyProjectc                  B    e Zd ZU dZded<   ded<   ded<   ded<   d
dZy	)PyToolz\Source for pytool.toml files.

    Uses platformdirs to find configuration directories.
    strdescriptiontoolnamer   filec                    ddl }t        |j                               dz  | _        d| _        || _        d| d| d| _        y)zInitialize the TOML configuration.

        :param tool: name of your tool. Will read configuration from [tool.yourtool]
        r   Nzpytool.tomla  
        The pytool.toml file is found at

        Mac OS X:               ~/Library/Application Support/pytool.toml
        Unix:                   ~/.config/pytool.toml     # or in $XDG_CONFIG_HOME,
                                if defined
        Win *:                  C:\Users\<username>\AppData\Local\pytool.toml
        It is configured in the same fashion as your pyproject.toml.
        Configuration for z is found in the [tool.z] table.
        )platformdirsr   user_config_dirr   r   r   r
   )selfr   r   s      =/usr/lib/python3/dist-packages/pytoolconfig/sources/pytool.py__init__zPyTool.__init__   sQ    
 	5578=H	!		!  & 7v >		    N)r   r	   returnNone)__name__
__module____qualname____doc____annotations__r    r   r   r   r   	   s#    
 
I
I
Jr   r   N)r   
__future__r   pathlibr   	pyprojectr   r   r   r   r   <module>r       s    # "   Y r   