403Webshell
Server IP : 104.21.84.107  /  Your IP : 104.23.197.209
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/xdg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/xdg/__init__.py
__all__ = [ "BaseDirectory", "DesktopEntry", "Menu", "Exceptions", "IniFile", "IconTheme", "Locale", "Config", "Mime", "RecentFiles", "MenuEditor" ]

__version__ = "0.28"

# Compatibility with xdg 5

from pathlib import Path
from typing import Optional, List
import os

from . import BaseDirectory

def xdg_cache_home() -> Path:
    return Path(BaseDirectory.xdg_cache_home)

def xdg_config_dirs() -> List[Path]:
    return [Path(path) for path in BaseDirectory.xdg_config_dirs]

def xdg_config_home() -> Path:
    return Path(BaseDirectory.xdg_config_home)

def xdg_data_dirs() -> List[Path]:
    return [Path(path) for path in BaseDirectory.xdg_data_dirs]

def xdg_data_home() -> Path:
    return Path(BaseDirectory.xdg_data_home)

def xdg_runtime_dir() -> Optional[Path]:
    try:
        return Path(os.environ['XDG_RUNTIME_DIR'])
    except KeyError:
        return None

XDG_CACHE_HOME = xdg_cache_home()
XDG_CONFIG_DIRS = xdg_config_dirs()
XDG_CONFIG_HOME = xdg_config_home()
XDG_DATA_DIRS = xdg_data_dirs()
XDG_DATA_HOME = xdg_data_home()
XDG_RUNTIME_DIR = xdg_runtime_dir()

Youez - 2016 - github.com/yon3zu
LinuXploit