관리-도구
편집 파일: appdirs.cpython-311.pyc
� ,�Re}` � �J � d Z dZd� eee� � � � ZddlZddlZej d dk Z e reZ ej � d� � rRddlZ ej � � d d Ze� d� � rdZn"e� d � � rd Zn dZnej Zd)d �Zd)d�Zd)d�Zd)d�Zd*d�Zd)d�Zd*d�Z G d� de� � Zd� Zd� Zd� Zd� Zedk r= ddlZeZn5# e $ r- ddl!m"Z" eZn # e $ r ddl#Z$eZn # e $ r eZY nw xY wY nw xY wY nw xY we%dk r�dZ&dZ'dZ( e)d ez � � e)d!� � ee&e'd"�#� � Z*e(D ]Z+ e)e+�d$ e,e*e+� � ��� � � e)d%� � ee&e'� � Z*e(D ]Z+ e)e+�d$ e,e*e+� � ��� � � e)d&� � ee&� � Z*e(D ]Z+ e)e+�d$ e,e*e+� � ��� � � e)d'� � ee&d�(� � Z*e(D ]Z+ e)e+�d$ e,e*e+� � ��� � �dS dS )+zyUtilities for determining application-specific dirs. See <http://github.com/ActiveState/appdirs> for details and usage. )� � � �.� Nr �java�Windows�win32�Mac�darwin�linux2Fc � � t dk r|�| }|rdpd}t j � t |� � � � }| rF|dur"t j � ||| � � }n�t j � || � � }n�t dk rBt j � d� � }| r t j � || � � }nTt j dt j � d � � � � }| r t j � || � � }| r"|r t j � ||� � }|S ) aJ Return full path to the user-specific data dir for this application. "appname" is the name of application. If None, just the system directory is returned. "appauthor" (only used on Windows) is the name of the appauthor or distributing body for this application. Typically it is the owning company name. This falls back to appname. You may pass False to disable it. "version" is an optional version path element to append to the path. You might want to use this if you want multiple versions of your app to be able to run independently. If used, this would typically be "<major>.<minor>". Only applied when appname is present. "roaming" (boolean, default False) can be set True to use the Windows roaming appdata directory. That means that for users on a Windows network setup for roaming profiles, this user data will be sync'd on login. See <http://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx> for a discussion of issues. Typical user data directories are: Mac OS X: ~/Library/Application Support/<AppName> Unix: ~/.local/share/<AppName> # or in $XDG_DATA_HOME, if defined Win XP (not roaming): C:\Documents and Settings\<username>\Application Data\<AppAuthor>\<AppName> Win XP (roaming): C:\Documents and Settings\<username>\Local Settings\Application Data\<AppAuthor>\<AppName> Win 7 (not roaming): C:\Users\<username>\AppData\Local\<AppAuthor>\<AppName> Win 7 (roaming): C:\Users\<username>\AppData\Roaming\<AppAuthor>\<AppName> For Unix, we follow the XDG spec and support $XDG_DATA_HOME. That means, by default "~/.local/share/<AppName>". r N� CSIDL_APPDATA�CSIDL_LOCAL_APPDATAFr z~/Library/Application Support/� XDG_DATA_HOMEz~/.local/share��system�os�path�normpath�_get_win_folder�join� expanduser�getenv)�appname� appauthor�version�roaming�constr s ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pkg_resources/_vendor/appdirs.py� user_data_dirr - s1 � �@ �������I��+�O�D�/D���w����� 6� 6�7�7��� 3���%�%��w�|�|�D�)�W�=�=����w�|�|�D�'�2�2��� �8� � ��w�!�!�"B�C�C��� /��7�<�<��g�.�.�D���y��"�'�*<�*<�=M�*N�*N�O�O��� /��7�<�<��g�.�.�D�� +�7� +��w�|�|�D�'�*�*���K� c �l � � t dk r{|�� }t j � t d� � � � }� rG|dur#t j � ||� � � }�n*t j � |� � � }�nt dk rBt j � d� � }� r t j � |� � � }n�t j dt j � dd g� � � � }d � |� t j � � D � � }� r0|r t j � � |� � � � fd�|D � � }|r t j � |� � }n|d }|S � r"|r t j � ||� � }|S ) ai Return full path to the user-shared data dir for this application. "appname" is the name of application. If None, just the system directory is returned. "appauthor" (only used on Windows) is the name of the appauthor or distributing body for this application. Typically it is the owning company name. This falls back to appname. You may pass False to disable it. "version" is an optional version path element to append to the path. You might want to use this if you want multiple versions of your app to be able to run independently. If used, this would typically be "<major>.<minor>". Only applied when appname is present. "multipath" is an optional parameter only applicable to *nix which indicates that the entire list of data dirs should be returned. By default, the first item from XDG_DATA_DIRS is returned, or '/usr/local/share/<AppName>', if XDG_DATA_DIRS is not set Typical site data directories are: Mac OS X: /Library/Application Support/<AppName> Unix: /usr/local/share/<AppName> or /usr/share/<AppName> Win XP: C:\Documents and Settings\All Users\Application Data\<AppAuthor>\<AppName> Vista: (Fail! "C:\ProgramData" is a hidden *system* directory on Vista.) Win 7: C:\ProgramData\<AppAuthor>\<AppName> # Hidden, but writeable on Win 7. For Unix, this is using the $XDG_DATA_DIRS[0] default. WARNING: Do not use this on Windows. See the Vista-Fail note above for why. r N�CSIDL_COMMON_APPDATAFr z/Library/Application Support� XDG_DATA_DIRSz/usr/local/sharez /usr/sharec � � g | ]>}t j � |� t j � � � � ��?S � �r r r �rstrip�sep��.0�xs r � <listcomp>z!site_data_dir.<locals>.<listcomp>� �6 � �Y�Y�Y�Q�B�G�&�&�q�x�x���'7�'7�8�8�Y�Y�Yr! c �R �� g | ]#}t j � |�g� � ��$S r&