File manager - Edit - /home/newsbmcs.com/public_html/static/img/logo/powershell.tar
Back
__pycache__/__init__.cpython-310.pyc 0000644 00000002354 15030075406 0013220 0 ustar 00 o }h7 � @ s2 d dl mZ d dlmZ G dd� de�ZdgZdS )� )�annotations)�ViaTemplateActivatorc @ s e Zd Zdd� Zedd� �ZdS )�PowerShellActivatorc c s � dV d S )Nzactivate.ps1� )�selfr r �T/usr/local/lib/python3.10/dist-packages/virtualenv/activation/powershell/__init__.py� templates s � zPowerShellActivator.templatesc C s | � dd�} d| � d�S )a� This should satisfy PowerShell quoting rules [1], unless the quoted string is passed directly to Windows native commands [2]. [1]: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules [2]: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parsing#passing-arguments-that-contain-quote-characters �'z'')�replace)�stringr r r �quote s zPowerShellActivator.quoteN)�__name__� __module__�__qualname__r �staticmethodr r r r r r s r N)� __future__r �"virtualenv.activation.via_templater r �__all__r r r r �<module> s � activate.ps1 0000644 00000003254 15030075406 0006775 0 ustar 00 $script:THIS_PATH = $myinvocation.mycommand.path $script:BASE_DIR = Split-Path (Resolve-Path "$THIS_PATH/..") -Parent function global:deactivate([switch] $NonDestructive) { if (Test-Path variable:_OLD_VIRTUAL_PATH) { $env:PATH = $variable:_OLD_VIRTUAL_PATH Remove-Variable "_OLD_VIRTUAL_PATH" -Scope global } if (Test-Path function:_old_virtual_prompt) { $function:prompt = $function:_old_virtual_prompt Remove-Item function:\_old_virtual_prompt } if ($env:VIRTUAL_ENV) { Remove-Item env:VIRTUAL_ENV -ErrorAction SilentlyContinue } if ($env:VIRTUAL_ENV_PROMPT) { Remove-Item env:VIRTUAL_ENV_PROMPT -ErrorAction SilentlyContinue } if (!$NonDestructive) { # Self destruct! Remove-Item function:deactivate Remove-Item function:pydoc } } function global:pydoc { python -m pydoc $args } # unset irrelevant variables deactivate -nondestructive $VIRTUAL_ENV = $BASE_DIR $env:VIRTUAL_ENV = $VIRTUAL_ENV if (__VIRTUAL_PROMPT__ -ne "") { $env:VIRTUAL_ENV_PROMPT = __VIRTUAL_PROMPT__ } else { $env:VIRTUAL_ENV_PROMPT = $( Split-Path $env:VIRTUAL_ENV -Leaf ) } New-Variable -Scope global -Name _OLD_VIRTUAL_PATH -Value $env:PATH $env:PATH = "$env:VIRTUAL_ENV/" + __BIN_NAME__ + __PATH_SEP__ + $env:PATH if (!$env:VIRTUAL_ENV_DISABLE_PROMPT) { function global:_old_virtual_prompt { "" } $function:_old_virtual_prompt = $function:prompt function global:prompt { # Add the custom prefix to the existing prompt $previous_prompt_value = & $function:_old_virtual_prompt ("(" + $env:VIRTUAL_ENV_PROMPT + ") " + $previous_prompt_value) } } __init__.py 0000644 00000001467 15030075406 0006665 0 ustar 00 from __future__ import annotations from virtualenv.activation.via_template import ViaTemplateActivator class PowerShellActivator(ViaTemplateActivator): def templates(self): yield "activate.ps1" @staticmethod def quote(string): """ This should satisfy PowerShell quoting rules [1], unless the quoted string is passed directly to Windows native commands [2]. [1]: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules [2]: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parsing#passing-arguments-that-contain-quote-characters """ # noqa: D205 string = string.replace("'", "''") return f"'{string}'" __all__ = [ "PowerShellActivator", ]
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings