PHP 8.2.30
Preview: store.py Size: 614 B
/proc/self/root/opt/cloudlinux/venv/lib64/python3.11/site-packages/virtualenv/create/via_global_ref/store.py

from pathlib import Path


def handle_store_python(meta, interpreter):
    if is_store_python(interpreter):
        meta.symlink_error = "Windows Store Python does not support virtual environments via symlink"
    return meta


def is_store_python(interpreter):
    parts = Path(interpreter.system_executable).parts
    return (
        len(parts) > 4
        and parts[-4] == "Microsoft"
        and parts[-3] == "WindowsApps"
        and parts[-2].startswith("PythonSoftwareFoundation.Python.3.")
        and parts[-1].startswith("python")
    )


__all__ = [
    "handle_store_python",
    "is_store_python",
]

Directory Contents

Dirs: 2 × Files: 5

Name Size Perms Modified Actions
builtin DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
4.08 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
614 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download
3.37 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
6.59 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
0 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).