PHP 8.2.30
Preview: __init__.py Size: 334 B
/opt/hc_python/lib/python3.12/site-packages/virtualenv/activation/bash/__init__.py

from __future__ import annotations

from pathlib import Path

from virtualenv.activation.via_template import ViaTemplateActivator


class BashActivator(ViaTemplateActivator):
    def templates(self):
        yield "activate.sh"

    def as_name(self, template):
        return Path(template).stem


__all__ = [
    "BashActivator",
]

Directory Contents

Dirs: 1 × Files: 2

Name Size Perms Modified Actions
- drwxr-xr-x 2025-04-04 08:02:01
Edit Download
2.22 KB lrw-r--r-- 2025-04-04 08:02:01
Edit Download
334 B lrw-r--r-- 2025-04-04 08:02:01
Edit Download

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