Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.py22 linesDownload Raw Back to nushell
1from __future__ import annotations2 3from virtualenv.activation.via_template import ViaTemplateActivator4 5 6class NushellActivator(ViaTemplateActivator):7    def templates(self):8        yield "activate.nu"9 10    def replacements(self, creator, dest_folder):  # noqa: ARG00211        return {12            "__VIRTUAL_PROMPT__": "" if self.flag_prompt is None else self.flag_prompt,13            "__VIRTUAL_ENV__": str(creator.dest),14            "__VIRTUAL_NAME__": creator.env_name,15            "__BIN_NAME__": str(creator.bin_dir.relative_to(creator.dest)),16        }17 18 19__all__ = [20    "NushellActivator",21]22 
codekingpro/portable-devtools · Team Ai