Re:ddlZddlZddlmZmZddlmZddlmZm Z ej dkrddlm Z GddeZ dS) N)ABCabstractmethod)Path)OptionalUnion))Literalc eZdZdZ d"deedeeddfdeed ed ed ef d Zd edefdZ e e defdZ e e defdZ e e defdZe e defdZe e defdZe e defdZe e defdZe e defdZe e defdZe defdZe defdZe defdZe defdZe defdZe defdZe defdZe defd Ze defd!ZdS)#PlatformDirsABCz7 Abstract base class for platform directories. NFTappname appauthorzLiteral[False]versionroaming multipathopinioncb||_||_ ||_ ||_ ||_ ||_dS)a% Create a new platform directory. :param appname: See `appname`. :param appauthor: See `appauthor`. :param version: See `version`. :param roaming: See `roaming`. :param multipath: See `multipath`. :param opinion: See `opinion`. N)r rrrrr)selfr rrrrrs /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/platformdirs/api.py__init__zPlatformDirsABC.__init__sN& "     #  basereturnct|dd}|jr;||j|jr||jt jj|dg|RS)Nr)listr appendrospathjoin)rrparamss r_append_app_name_and_versionz,PlatformDirsABC._append_app_name_and_version;sod122h < , MM$, ' ' '| , dl+++w|DG-f----rcdS)z(:return: data directory tied to the userNrs r user_data_dirzPlatformDirsABC.user_data_dirCrcdS)z':return: data directory shared by usersNr$r%s r site_data_dirzPlatformDirsABC.site_data_dirHr'rcdS)z*:return: config directory tied to the userNr$r%s ruser_config_dirzPlatformDirsABC.user_config_dirMr'rcdS)z-:return: config directory shared by the usersNr$r%s rsite_config_dirzPlatformDirsABC.site_config_dirRr'rcdS)z):return: cache directory tied to the userNr$r%s ruser_cache_dirzPlatformDirsABC.user_cache_dirWr'rcdS)z):return: state directory tied to the userNr$r%s ruser_state_dirzPlatformDirsABC.user_state_dir\r'rcdS)z':return: log directory tied to the userNr$r%s r user_log_dirzPlatformDirsABC.user_log_dirar'rcdS)z-:return: documents directory tied to the userNr$r%s ruser_documents_dirz"PlatformDirsABC.user_documents_dirfr'rcdS)z+:return: runtime directory tied to the userNr$r%s ruser_runtime_dirz PlatformDirsABC.user_runtime_dirkr'rc*t|jS)z#:return: data path tied to the user)rr&r%s ruser_data_pathzPlatformDirsABC.user_data_pathpD&'''rc*t|jS)z":return: data path shared by users)rr)r%s rsite_data_pathzPlatformDirsABC.site_data_pathur:rc*t|jS)z%:return: config path tied to the user)rr+r%s ruser_config_pathz PlatformDirsABC.user_config_pathzD()))rc*t|jS)z(:return: config path shared by the users)rr-r%s rsite_config_pathz PlatformDirsABC.site_config_pathr?rc*t|jS)z$:return: cache path tied to the user)rr/r%s ruser_cache_pathzPlatformDirsABC.user_cache_pathD'(((rc*t|jS)z$:return: state path tied to the user)rr1r%s ruser_state_pathzPlatformDirsABC.user_state_pathrDrc*t|jS)z":return: log path tied to the user)rr3r%s r user_log_pathzPlatformDirsABC.user_log_pathsD%&&&rc*t|jS)z(:return: documents path tied to the user)rr5r%s ruser_documents_pathz#PlatformDirsABC.user_documents_pathsD+,,,rc*t|jS)z&:return: runtime path tied to the user)rr7r%s ruser_runtime_pathz!PlatformDirsABC.user_runtime_pathsD)***r)NNNFFT)__name__ __module__ __qualname____doc__rstrrboolrr"propertyrr&r)r+r-r/r1r3r5r7rr9r<r>rArCrFrHrJrLr$rrr r s "&8rYs ########""""""""vP+P+P+P+P+cP+P+P+P+P+r