⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.140
Server IP:
68.65.123.197
Server:
Linux premium49.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python2.7
/
site-packages
/
pip
/
utils
/
Edit File: appdirs.pyc
ó •abc @@ sÜ d Z d d l m Z d d l Z d d l Z d d l m Z m Z d d l m Z m Z d „ Z e d „ Z e d „ Z d „ Z d „ Z d „ Z e rÏ y d d l Z e Z WqÏ e k rË e Z qÏ Xn d „ Z d S( sd This code was taken from https://github.com/ActiveState/appdirs and modified to suit our purposes. i ( t absolute_importN( t WINDOWSt expanduser( t PY2t text_typec C@ sÁ t r] t j j t d ƒ ƒ } t rB t | t ƒ rB t | ƒ } n t j j | | d ƒ } n` t j d k r t d ƒ } t j j | | ƒ } n- t j d t d ƒ ƒ } t j j | | ƒ } | S( s5 Return full path to the user-specific cache dir for this application. "appname" is the name of application. Typical user cache directories are: macOS: ~/Library/Caches/
Unix: ~/.cache/
(XDG default) Windows: C:\Users\
\AppData\Local\
\Cache On Windows the only suggestion in the MSDN docs is that local settings go in the `CSIDL_LOCAL_APPDATA` directory. This is identical to the non-roaming app data dir (the default returned by `user_data_dir`). Apps typically put cache data somewhere *under* the given dir here. Some examples: ...\Mozilla\Firefox\Profiles\
\Cache ...\Acme\SuperApp\Cache\1.0 OPINION: This function appends "Cache" to the `CSIDL_LOCAL_APPDATA` value. t CSIDL_LOCAL_APPDATAt Cachet darwins ~/Library/Cachest XDG_CACHE_HOMEs ~/.cache( R t ost patht normpatht _get_win_folderR t isinstanceR t _win_path_to_bytest joint syst platformR t getenv( t appnameR ( ( s5 /usr/lib/python2.7/site-packages/pip/utils/appdirs.pyt user_cache_dir s c C@ sš t rB | r d p d } t j j t j j t | ƒ ƒ | ƒ } nT t j d k ro t j j t d ƒ | ƒ } n' t j j t j d t d ƒ ƒ | ƒ } | S( sS 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. "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
for a discussion of issues. Typical user data directories are: macOS: ~/Library/Application Support/
Unix: ~/.local/share/
# or in $XDG_DATA_HOME, if defined Win XP (not roaming): C:\Documents and Settings\
\ ... ...Application Data\
Win XP (roaming): C:\Documents and Settings\
\Local ... ...Settings\Application Data\
Win 7 (not roaming): C:\Users\
\AppData\Local\
Win 7 (roaming): C:\Users\
\AppData\Roaming\
For Unix, we follow the XDG spec and support $XDG_DATA_HOME. That means, by default "~/.local/share/
". t CSIDL_APPDATAR R s ~/Library/Application Support/t XDG_DATA_HOMEs ~/.local/share( R R R R R R R R R R ( R t roamingt constR ( ( s5 /usr/lib/python2.7/site-packages/pip/utils/appdirs.pyt user_data_dir> s * c C@ sj t r t | d | ƒ} nK t j d k r9 t | ƒ } n- t j d t d ƒ ƒ } t j j | | ƒ } | S( sr Return full path to the user-specific config dir for this application. "appname" is the name of application. If None, just the system directory is returned. "roaming" (boolean, default True) can be set False to not 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
for a discussion of issues. Typical user data directories are: macOS: same as user_data_dir Unix: ~/.config/
Win *: same as user_data_dir For Unix, we follow the XDG spec and support $XDG_CONFIG_HOME. That means, by default "~/.config/
". R R t XDG_CONFIG_HOMEs ~/.config( R R R R R R R R R ( R R R ( ( s5 /usr/lib/python2.7/site-packages/pip/utils/appdirs.pyt user_config_dirj s c C@ sÏ t r9 t j j t d ƒ ƒ } t j j | | ƒ g } n’ t j d k rc t j j d | ƒ g } nh t j d d ƒ } | r¸ g | j t j ƒ D]! } t j j t | ƒ | ƒ ^ qŽ } n g } | j d ƒ | S( s‹ Return a list of potential user-shared config dirs for this application. "appname" is the name of application. Typical user config directories are: macOS: /Library/Application Support/
/ Unix: /etc or $XDG_CONFIG_DIRS[i]/
/ for each value in $XDG_CONFIG_DIRS Win XP: C:\Documents and Settings\All Users\Application ... ...Data\
Vista: (Fail! "C:\ProgramData" is a hidden *system* directory on Vista.) Win 7: Hidden, but writeable on Win 7: C:\ProgramData\
t CSIDL_COMMON_APPDATAR s /Library/Application Supportt XDG_CONFIG_DIRSs /etc/xdgs /etc( R R R R R R R R R t splitt pathsepR t append( R R t pathlistt xdg_config_dirst x( ( s5 /usr/lib/python2.7/site-packages/pip/utils/appdirs.pyt site_config_dirs‹ s : c C@ s\ d d l } i d d 6d d 6d d 6| } | j | j d ƒ } | j | | ƒ \ } } | S( s› This is a fallback technique at best. I'm not sure if using the registry for this guarantees us the correct answer for all CSIDL_* names. i Nt AppDataR s Common AppDataR s Local AppDataR s@ Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders( t _winregt OpenKeyt HKEY_CURRENT_USERt QueryValueEx( t csidl_nameR&