PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
setuptools
import os import sys from typing import Union _Path = Union[str, os.PathLike] def ensure_directory(path): """Ensure that the parent directory of `path` exists""" dirname = os.path.dirname(path) os.makedirs(dirname, exist_ok=True) def same_path(p1: _Path, p2: _Path) -> bool: """Differs from os.path.samefile because it does not require paths to exist. Purely string based (no comparison between i-nodes). >>> same_path("a/b", "./a/b") True >>> same_path("a/b", "a/./b") True >>> same_path("a/b", "././a/b") True >>> same_path("a/b", "./a/b/c/..") True >>> same_path("a/b", "../a/b/c") False >>> same_path("a", "a/b") False """ return normpath(p1) == normpath(p2) def normpath(filename: _Path) -> str: """Normalize a file/dir name for comparison purposes.""" # See pkg_resources.normalize_path for notes about cygwin file = os.path.abspath(filename) if sys.platform == 'cygwin' else filename return os.path.normcase(os.path.realpath(os.path.normpath(file)))
[-] errors.py
[edit]
[-] sandbox.py
[edit]
[-] _path.py
[edit]
[-] depends.py
[edit]
[-] _reqs.py
[edit]
[-] cli.exe
[edit]
[-] cli-64.exe
[edit]
[+]
..
[-] gui-arm64.exe
[edit]
[-] warnings.py
[edit]
[-] gui.exe
[edit]
[+]
extern
[-] gui-64.exe
[edit]
[-] script.tmpl
[edit]
[-] package_index.py
[edit]
[+]
_distutils
[-] windows_support.py
[edit]
[-] modified.py
[edit]
[-] glob.py
[edit]
[-] _imp.py
[edit]
[-] wheel.py
[edit]
[-] launch.py
[edit]
[-] dist.py
[edit]
[+]
_vendor
[-] cli-32.exe
[edit]
[+]
__pycache__
[-] py312compat.py
[edit]
[-] installer.py
[edit]
[-] msvc.py
[edit]
[-] archive_util.py
[edit]
[-] _normalization.py
[edit]
[-] discovery.py
[edit]
[-] monkey.py
[edit]
[+]
config
[-] _entry_points.py
[edit]
[-] version.py
[edit]
[-] _core_metadata.py
[edit]
[-] _itertools.py
[edit]
[-] logging.py
[edit]
[-] gui-32.exe
[edit]
[-] unicode_utils.py
[edit]
[-] namespaces.py
[edit]
[-] build_meta.py
[edit]
[-] __init__.py
[edit]
[-] cli-arm64.exe
[edit]
[+]
command
[-] script (dev).tmpl
[edit]
[-] _importlib.py
[edit]
[-] dep_util.py
[edit]
[-] extension.py
[edit]