Upgraded readme and removed unused files
This commit is contained in:
parent
fe1f22efbd
commit
3bc9f554db
@ -1,406 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Activate a Python virtual environment for the current PowerShell session.
|
|
||||||
|
|
||||||
.Description
|
|
||||||
Pushes the python executable for a virtual environment to the front of the
|
|
||||||
$Env:PATH environment variable and sets the prompt to signify that you are
|
|
||||||
in a Python virtual environment. Makes use of the command line switches as
|
|
||||||
well as the `pyvenv.cfg` file values present in the virtual environment.
|
|
||||||
|
|
||||||
.Parameter VenvDir
|
|
||||||
Path to the directory that contains the virtual environment to activate. The
|
|
||||||
default value for this is the parent of the directory that the Activate.ps1
|
|
||||||
script is located within.
|
|
||||||
|
|
||||||
.Parameter Prompt
|
|
||||||
The prompt prefix to display when this virtual environment is activated. By
|
|
||||||
default, this prompt is the name of the virtual environment folder (VenvDir)
|
|
||||||
surrounded by parentheses and followed by a single space (ie. '(.venv) ').
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Activate.ps1
|
|
||||||
Activates the Python virtual environment that contains the Activate.ps1 script.
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Activate.ps1 -Verbose
|
|
||||||
Activates the Python virtual environment that contains the Activate.ps1 script,
|
|
||||||
and shows extra information about the activation as it executes.
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv
|
|
||||||
Activates the Python virtual environment located in the specified location.
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Activate.ps1 -Prompt "MyPython"
|
|
||||||
Activates the Python virtual environment that contains the Activate.ps1 script,
|
|
||||||
and prefixes the current prompt with the specified string (surrounded in
|
|
||||||
parentheses) while the virtual environment is active.
|
|
||||||
|
|
||||||
.Notes
|
|
||||||
On Windows, it may be required to enable this Activate.ps1 script by setting the
|
|
||||||
execution policy for the user. You can do this by issuing the following PowerShell
|
|
||||||
command:
|
|
||||||
|
|
||||||
PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
||||||
|
|
||||||
For more information on Execution Policies:
|
|
||||||
https://go.microsoft.com/fwlink/?LinkID=135170
|
|
||||||
|
|
||||||
#>
|
|
||||||
Param(
|
|
||||||
[Parameter(Mandatory = $false)]
|
|
||||||
[String]
|
|
||||||
$VenvDir,
|
|
||||||
[Parameter(Mandatory = $false)]
|
|
||||||
[String]
|
|
||||||
$Prompt
|
|
||||||
)
|
|
||||||
|
|
||||||
<# Function declarations --------------------------------------------------- #>
|
|
||||||
|
|
||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Remove all shell session elements added by the Activate script, including the
|
|
||||||
addition of the virtual environment's Python executable from the beginning of
|
|
||||||
the PATH variable.
|
|
||||||
|
|
||||||
.Parameter NonDestructive
|
|
||||||
If present, do not remove this function from the global namespace for the
|
|
||||||
session.
|
|
||||||
|
|
||||||
#>
|
|
||||||
function global:deactivate ([switch]$NonDestructive) {
|
|
||||||
# Revert to original values
|
|
||||||
|
|
||||||
# The prior prompt:
|
|
||||||
if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) {
|
|
||||||
Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt
|
|
||||||
Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT
|
|
||||||
}
|
|
||||||
|
|
||||||
# The prior PYTHONHOME:
|
|
||||||
if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) {
|
|
||||||
Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME
|
|
||||||
Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME
|
|
||||||
}
|
|
||||||
|
|
||||||
# The prior PATH:
|
|
||||||
if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) {
|
|
||||||
Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH
|
|
||||||
Remove-Item -Path Env:_OLD_VIRTUAL_PATH
|
|
||||||
}
|
|
||||||
|
|
||||||
# Just remove the VIRTUAL_ENV altogether:
|
|
||||||
if (Test-Path -Path Env:VIRTUAL_ENV) {
|
|
||||||
Remove-Item -Path env:VIRTUAL_ENV
|
|
||||||
}
|
|
||||||
|
|
||||||
# Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether:
|
|
||||||
if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) {
|
|
||||||
Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force
|
|
||||||
}
|
|
||||||
|
|
||||||
# Leave deactivate function in the global namespace if requested:
|
|
||||||
if (-not $NonDestructive) {
|
|
||||||
Remove-Item -Path function:deactivate
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
<#
|
|
||||||
.Description
|
|
||||||
Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the
|
|
||||||
given folder, and returns them in a map.
|
|
||||||
|
|
||||||
For each line in the pyvenv.cfg file, if that line can be parsed into exactly
|
|
||||||
two strings separated by `=` (with any amount of whitespace surrounding the =)
|
|
||||||
then it is considered a `key = value` line. The left hand string is the key,
|
|
||||||
the right hand is the value.
|
|
||||||
|
|
||||||
If the value starts with a `'` or a `"` then the first and last character is
|
|
||||||
stripped from the value before being captured.
|
|
||||||
|
|
||||||
.Parameter ConfigDir
|
|
||||||
Path to the directory that contains the `pyvenv.cfg` file.
|
|
||||||
#>
|
|
||||||
function Get-PyVenvConfig(
|
|
||||||
[String]
|
|
||||||
$ConfigDir
|
|
||||||
) {
|
|
||||||
Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg"
|
|
||||||
|
|
||||||
# Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue).
|
|
||||||
$pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue
|
|
||||||
|
|
||||||
# An empty map will be returned if no config file is found.
|
|
||||||
$pyvenvConfig = @{ }
|
|
||||||
|
|
||||||
if ($pyvenvConfigPath) {
|
|
||||||
|
|
||||||
Write-Verbose "File exists, parse `key = value` lines"
|
|
||||||
$pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath
|
|
||||||
|
|
||||||
$pyvenvConfigContent | ForEach-Object {
|
|
||||||
$keyval = $PSItem -split "\s*=\s*", 2
|
|
||||||
if ($keyval[0] -and $keyval[1]) {
|
|
||||||
$val = $keyval[1]
|
|
||||||
|
|
||||||
# Remove extraneous quotations around a string value.
|
|
||||||
if ("'""".Contains($val.Substring(0, 1))) {
|
|
||||||
$val = $val.Substring(1, $val.Length - 2)
|
|
||||||
}
|
|
||||||
|
|
||||||
$pyvenvConfig[$keyval[0]] = $val
|
|
||||||
Write-Verbose "Adding Key: '$($keyval[0])'='$val'"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $pyvenvConfig
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
<# Begin Activate script --------------------------------------------------- #>
|
|
||||||
|
|
||||||
# Determine the containing directory of this script
|
|
||||||
$VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
|
|
||||||
$VenvExecDir = Get-Item -Path $VenvExecPath
|
|
||||||
|
|
||||||
Write-Verbose "Activation script is located in path: '$VenvExecPath'"
|
|
||||||
Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)"
|
|
||||||
Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)"
|
|
||||||
|
|
||||||
# Set values required in priority: CmdLine, ConfigFile, Default
|
|
||||||
# First, get the location of the virtual environment, it might not be
|
|
||||||
# VenvExecDir if specified on the command line.
|
|
||||||
if ($VenvDir) {
|
|
||||||
Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values"
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir."
|
|
||||||
$VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/")
|
|
||||||
Write-Verbose "VenvDir=$VenvDir"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Next, read the `pyvenv.cfg` file to determine any required value such
|
|
||||||
# as `prompt`.
|
|
||||||
$pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir
|
|
||||||
|
|
||||||
# Next, set the prompt from the command line, or the config file, or
|
|
||||||
# just use the name of the virtual environment folder.
|
|
||||||
if ($Prompt) {
|
|
||||||
Write-Verbose "Prompt specified as argument, using '$Prompt'"
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value"
|
|
||||||
if ($pyvenvCfg -and $pyvenvCfg['prompt']) {
|
|
||||||
Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'"
|
|
||||||
$Prompt = $pyvenvCfg['prompt'];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virutal environment)"
|
|
||||||
Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'"
|
|
||||||
$Prompt = Split-Path -Path $venvDir -Leaf
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Verbose "Prompt = '$Prompt'"
|
|
||||||
Write-Verbose "VenvDir='$VenvDir'"
|
|
||||||
|
|
||||||
# Deactivate any currently active virtual environment, but leave the
|
|
||||||
# deactivate function in place.
|
|
||||||
deactivate -nondestructive
|
|
||||||
|
|
||||||
# Now set the environment variable VIRTUAL_ENV, used by many tools to determine
|
|
||||||
# that there is an activated venv.
|
|
||||||
$env:VIRTUAL_ENV = $VenvDir
|
|
||||||
|
|
||||||
if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) {
|
|
||||||
|
|
||||||
Write-Verbose "Setting prompt to '$Prompt'"
|
|
||||||
|
|
||||||
# Set the prompt to include the env name
|
|
||||||
# Make sure _OLD_VIRTUAL_PROMPT is global
|
|
||||||
function global:_OLD_VIRTUAL_PROMPT { "" }
|
|
||||||
Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT
|
|
||||||
New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt
|
|
||||||
|
|
||||||
function global:prompt {
|
|
||||||
Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) "
|
|
||||||
_OLD_VIRTUAL_PROMPT
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Clear PYTHONHOME
|
|
||||||
if (Test-Path -Path Env:PYTHONHOME) {
|
|
||||||
Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME
|
|
||||||
Remove-Item -Path Env:PYTHONHOME
|
|
||||||
}
|
|
||||||
|
|
||||||
# Add the venv to the PATH
|
|
||||||
Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH
|
|
||||||
$Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"
|
|
||||||
|
|
||||||
# SIG # Begin signature block
|
|
||||||
# MIIeQwYJKoZIhvcNAQcCoIIeNDCCHjACAQExDzANBglghkgBZQMEAgEFADB5Bgor
|
|
||||||
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
|
|
||||||
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAwnDYwEHaCQq0n
|
|
||||||
# 8NAvsN7H7BO7/48rXCNwrg891FS5vaCCC38wggUwMIIEGKADAgECAhAECRgbX9W7
|
|
||||||
# ZnVTQ7VvlVAIMA0GCSqGSIb3DQEBCwUAMGUxCzAJBgNVBAYTAlVTMRUwEwYDVQQK
|
|
||||||
# EwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20xJDAiBgNV
|
|
||||||
# BAMTG0RpZ2lDZXJ0I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VLoRAi+ev6s07POt+JtHRIm87lTyuc8wh0swTPUwksKbLU1Zdj9CpqtzXnuVE0w
|
|
||||||
# 50exJvRSK3Vt4g+0vigpI3qPmDdpkf9+4Mvy0XMNcqrthw20R+PkIlMxghIaMIIS
|
|
||||||
# FgIBATCBhjByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkw
|
|
||||||
# FwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEy
|
|
||||||
# IEFzc3VyZWQgSUQgQ29kZSBTaWduaW5nIENBAhADPtXtoGXRuMkd/PkqbJvYMA0G
|
|
||||||
# CWCGSAFlAwQCAQUAoIGYMBkGCSqGSIb3DQEJAzEMBgorBgEEAYI3AgEEMBwGCisG
|
|
||||||
# AQQBgjcCAQsxDjAMBgorBgEEAYI3AgEVMCwGCisGAQQBgjcCAQwxHjAcoBqAGABQ
|
|
||||||
# AHkAdABoAG8AbgAgADMALgA5AC4AMTAvBgkqhkiG9w0BCQQxIgQgBrni4mcRv7sM
|
|
||||||
# JHsxpROjRopOz2wuQVrJnn+lD7X7y+gwDQYJKoZIhvcNAQEBBQAEggIAM32+x1dw
|
|
||||||
# tO6ykKrJxRCyfp4ouh7VPshhZ/1rXZ0Z8Sjc5T1R6h5l28c0p1MhStEqSiARIjy5
|
|
||||||
# 2YtXtEnDX103fOppDABHiAwgFMvfKFxMY15r0L4oUidDn/JeRgF0UrJrPutzQV86
|
|
||||||
# HM0BaUShvotkwnu2/X/+U+tDTC7uMcn2u8zOZn1znUPwgnWSVCCNjNxEYJ40nBrG
|
|
||||||
# WWJSpNivxOzD34GH/a8oz0jxCrB/dHIomvIHO9dcbjSAVes+/wtoH5LgYfxpCSYr
|
|
||||||
# Z96d/aY5UrYoYfQZS5l1/F7JykxuaWsEgdqenPqhZz+hLkgYVY1ztQVZKbjFze7m
|
|
||||||
# RULcIz1oY8BIdHLpEblBZeBT3jk4Q094/Q2px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0hBMjU2
|
|
||||||
# LTIwMTktMTAtMTUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDpZDWc
|
|
||||||
# +qmYZWQb5BfcuCk2zGcJWIVNMODJ/+U7PBEoUK8HMeJdCRjC9omMaQgEI+B3LZ0V
|
|
||||||
# 5bjooWqO/9Su0noW7/hBtR05dcHPL6esRX6UbawDAZk8Yj5+ev1FlzG0+rfZQj6n
|
|
||||||
# VZvfWk9YAqgyaSITvouCLcaYq2ubtMnyZREMdA2y8AiWdMToskiioRSl+PrhiXBE
|
|
||||||
# O43v+6T0w7m9FCzrDCgnJYCrEEsWEmALaSKMTs3G1bJlWSHgfCwSjXAOj4rK4NPX
|
|
||||||
# szl3UNBCLC56zpxnejh3VED/T5UEINTryM6HFAj+HYDd0OcreOq/H3DG7kIWUzZF
|
|
||||||
# m1MZSWKdegKblRSjAgMBAAGjggM4MIIDNDAOBgNVHQ8BAf8EBAMCB4AwDAYDVR0T
|
|
||||||
# AQH/BAIwADAWBgNVHSUBAf8EDDAKBggrBgEFBQcDCDCCAb8GA1UdIASCAbYwggGy
|
|
||||||
# MIIBoQYJYIZIAYb9bAcBMIIBkjAoBggrBgEFBQcCARYcaHR0cHM6Ly93d3cuZGln
|
|
||||||
# aWNlcnQuY29tL0NQUzCCAWQGCCsGAQUFBwICMIIBVh6CAVIAQQBuAHkAIAB1AHMA
|
|
||||||
# ZQAgAG8AZgAgAHQAaABpAHMAIABDAGUAcgB0AGkAZgBpAGMAYQB0AGUAIABjAG8A
|
|
||||||
# bgBzAHQAaQB0AHUAdABlAHMAIABhAGMAYwBlAHAAdABhAG4AYwBlACAAbwBmACAA
|
|
||||||
# dABoAGUAIABEAGkAZwBpAEMAZQByAHQAIABDAFAALwBDAFAAUwAgAGEAbgBkACAA
|
|
||||||
# dABoAGUAIABSAGUAbAB5AGkAbgBnACAAUABhAHIAdAB5ACAAQQBnAHIAZQBlAG0A
|
|
||||||
# ZQBuAHQAIAB3AGgAaQB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s9BNLZmXbZ0e/VWMyIvIjayS6JK
|
|
||||||
# ldj1po5SMYICTTCCAkkCAQEwgYYwcjELMAkGA1UEBhMCVVMxFTATBgNVBAoTDERp
|
|
||||||
# Z2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3LmRpZ2ljZXJ0LmNvbTExMC8GA1UEAxMo
|
|
||||||
# RGlnaUNlcnQgU0hBMiBBc3N1cmVkIElEIFRpbWVzdGFtcGluZyBDQQIQBM0/hWiu
|
|
||||||
# dsYbsP5xYMynbTANBglghkgBZQMEAgEFAKCBmDAaBgkqhkiG9w0BCQMxDQYLKoZI
|
|
||||||
# hvcNAQkQAQQwHAYJKoZIhvcNAQkFMQ8XDTIwMTIwNzE3MjQxNVowKwYLKoZIhvcN
|
|
||||||
# AQkQAgwxHDAaMBgwFgQUAyW9UF7aljAtwi9PoB5MKL4oNMUwLwYJKoZIhvcNAQkE
|
|
||||||
# MSIEIKNuBKbQIa9EYaGw5LbsZcoiHQWB5IL4wN2WFMAjd14oMA0GCSqGSIb3DQEB
|
|
||||||
# AQUABIIBAEQMyJNcIG5djYU95wCLiDHXQ1BCjgdm1JLO7ks9t1qGOkeJKs/M3d8q
|
|
||||||
# hc4AE+yq7mKksuV5kznm90G4pwj38tCvl/htKX5qWFHScKX+h+rFvlg9fS6mdNY1
|
|
||||||
# h/qP8agpJA3lWhK9YcJIvmeWEWJFBuduU4xH/KAelE3K3PrgcsLomLNRhMVuRDX2
|
|
||||||
# W+EB/yZVf760CI2O2ek8pUsz5COIOYRH9oD3TRk656on09K/omqw0J42myeGJ9mj
|
|
||||||
# VVWD0FPlE5Yg+T2QAAPBatOSGAxSuM145ykWOZ/ToOOS31XES2qYwe0b0ce0vQdx
|
|
||||||
# TnnSx8JkNd8Q6A73Z9U7LTLK9wtfn9A=
|
|
||||||
# SIG # End signature block
|
|
@ -1,66 +0,0 @@
|
|||||||
# This file must be used with "source bin/activate" *from bash*
|
|
||||||
# you cannot run it directly
|
|
||||||
|
|
||||||
deactivate () {
|
|
||||||
# reset old environment variables
|
|
||||||
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
|
|
||||||
PATH="${_OLD_VIRTUAL_PATH:-}"
|
|
||||||
export PATH
|
|
||||||
unset _OLD_VIRTUAL_PATH
|
|
||||||
fi
|
|
||||||
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
|
|
||||||
PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
|
|
||||||
export PYTHONHOME
|
|
||||||
unset _OLD_VIRTUAL_PYTHONHOME
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This should detect bash and zsh, which have a hash command that must
|
|
||||||
# be called to get it to forget past commands. Without forgetting
|
|
||||||
# past commands the $PATH changes we made may not be respected
|
|
||||||
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
|
|
||||||
hash -r 2> /dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
|
|
||||||
PS1="${_OLD_VIRTUAL_PS1:-}"
|
|
||||||
export PS1
|
|
||||||
unset _OLD_VIRTUAL_PS1
|
|
||||||
fi
|
|
||||||
|
|
||||||
unset VIRTUAL_ENV
|
|
||||||
if [ ! "${1:-}" = "nondestructive" ] ; then
|
|
||||||
# Self destruct!
|
|
||||||
unset -f deactivate
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# unset irrelevant variables
|
|
||||||
deactivate nondestructive
|
|
||||||
|
|
||||||
VIRTUAL_ENV="C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv"
|
|
||||||
export VIRTUAL_ENV
|
|
||||||
|
|
||||||
_OLD_VIRTUAL_PATH="$PATH"
|
|
||||||
PATH="$VIRTUAL_ENV/Scripts:$PATH"
|
|
||||||
export PATH
|
|
||||||
|
|
||||||
# unset PYTHONHOME if set
|
|
||||||
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
|
|
||||||
# could use `if (set -u; : $PYTHONHOME) ;` in bash
|
|
||||||
if [ -n "${PYTHONHOME:-}" ] ; then
|
|
||||||
_OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
|
|
||||||
unset PYTHONHOME
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
|
|
||||||
_OLD_VIRTUAL_PS1="${PS1:-}"
|
|
||||||
PS1="(windows_venv) ${PS1:-}"
|
|
||||||
export PS1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This should detect bash and zsh, which have a hash command that must
|
|
||||||
# be called to get it to forget past commands. Without forgetting
|
|
||||||
# past commands the $PATH changes we made may not be respected
|
|
||||||
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
|
|
||||||
hash -r 2> /dev/null
|
|
||||||
fi
|
|
@ -1,33 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
rem This file is UTF-8 encoded, so we need to update the current code page while executing it
|
|
||||||
for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do (
|
|
||||||
set _OLD_CODEPAGE=%%a
|
|
||||||
)
|
|
||||||
if defined _OLD_CODEPAGE (
|
|
||||||
"%SystemRoot%\System32\chcp.com" 65001 > nul
|
|
||||||
)
|
|
||||||
|
|
||||||
set VIRTUAL_ENV=C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv
|
|
||||||
|
|
||||||
if not defined PROMPT set PROMPT=$P$G
|
|
||||||
|
|
||||||
if defined _OLD_VIRTUAL_PROMPT set PROMPT=%_OLD_VIRTUAL_PROMPT%
|
|
||||||
if defined _OLD_VIRTUAL_PYTHONHOME set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%
|
|
||||||
|
|
||||||
set _OLD_VIRTUAL_PROMPT=%PROMPT%
|
|
||||||
set PROMPT=(windows_venv) %PROMPT%
|
|
||||||
|
|
||||||
if defined PYTHONHOME set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%
|
|
||||||
set PYTHONHOME=
|
|
||||||
|
|
||||||
if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH%
|
|
||||||
if not defined _OLD_VIRTUAL_PATH set _OLD_VIRTUAL_PATH=%PATH%
|
|
||||||
|
|
||||||
set PATH=%VIRTUAL_ENV%\Scripts;%PATH%
|
|
||||||
|
|
||||||
:END
|
|
||||||
if defined _OLD_CODEPAGE (
|
|
||||||
"%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul
|
|
||||||
set _OLD_CODEPAGE=
|
|
||||||
)
|
|
Binary file not shown.
Binary file not shown.
@ -1,21 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
if defined _OLD_VIRTUAL_PROMPT (
|
|
||||||
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
|
|
||||||
)
|
|
||||||
set _OLD_VIRTUAL_PROMPT=
|
|
||||||
|
|
||||||
if defined _OLD_VIRTUAL_PYTHONHOME (
|
|
||||||
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
|
|
||||||
set _OLD_VIRTUAL_PYTHONHOME=
|
|
||||||
)
|
|
||||||
|
|
||||||
if defined _OLD_VIRTUAL_PATH (
|
|
||||||
set "PATH=%_OLD_VIRTUAL_PATH%"
|
|
||||||
)
|
|
||||||
|
|
||||||
set _OLD_VIRTUAL_PATH=
|
|
||||||
|
|
||||||
set VIRTUAL_ENV=
|
|
||||||
|
|
||||||
:END
|
|
Binary file not shown.
@ -1,21 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
# When the django-admin.py deprecation ends, remove this script.
|
|
||||||
import warnings
|
|
||||||
|
|
||||||
from django.core import management
|
|
||||||
|
|
||||||
try:
|
|
||||||
from django.utils.deprecation import RemovedInDjango40Warning
|
|
||||||
except ImportError:
|
|
||||||
raise ImportError(
|
|
||||||
'django-admin.py was deprecated in Django 3.1 and removed in Django '
|
|
||||||
'4.0. Please manually remove this script from your virtual environment '
|
|
||||||
'and use django-admin instead.'
|
|
||||||
)
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
warnings.warn(
|
|
||||||
'django-admin.py is deprecated in favor of django-admin.',
|
|
||||||
RemovedInDjango40Warning,
|
|
||||||
)
|
|
||||||
management.execute_from_command_line()
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,23 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
|
|
||||||
# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $
|
|
||||||
# Author: David Goodger <goodger@python.org>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing HTML.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates (X)HTML documents from standalone reStructuredText '
|
|
||||||
'sources. ' + default_description)
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='html', description=description)
|
|
@ -1,26 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
|
|
||||||
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
|
|
||||||
# Author: David Goodger <goodger@python.org>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing (X)HTML.
|
|
||||||
|
|
||||||
The output conforms to XHTML 1.0 transitional
|
|
||||||
and almost to HTML 4.01 transitional (except for closing empty tags).
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates (X)HTML documents from standalone reStructuredText '
|
|
||||||
'sources. ' + default_description)
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='html4', description=description)
|
|
@ -1,34 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
# -*- coding: utf8 -*-
|
|
||||||
# :Copyright: © 2015 Günter Milde.
|
|
||||||
# :License: Released under the terms of the `2-Clause BSD license`_, in short:
|
|
||||||
#
|
|
||||||
# Copying and distribution of this file, with or without modification,
|
|
||||||
# are permitted in any medium without royalty provided the copyright
|
|
||||||
# notice and this notice are preserved.
|
|
||||||
# This file is offered as-is, without any warranty.
|
|
||||||
#
|
|
||||||
# .. _2-Clause BSD license: https://opensource.org/licenses/BSD-2-Clause
|
|
||||||
#
|
|
||||||
# Revision: $Revision: 8567 $
|
|
||||||
# Date: $Date: 2020-09-30 13:57:21 +0200 (Mi, 30. Sep 2020) $
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing HTML 5 documents.
|
|
||||||
|
|
||||||
The output is also valid XML.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale # module missing in Jython
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except locale.Error:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
description = (u'Generates HTML5 documents from standalone '
|
|
||||||
u'reStructuredText sources.\n'
|
|
||||||
+ default_description)
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='html5', description=description)
|
|
@ -1,26 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
|
|
||||||
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
|
|
||||||
# Author: David Goodger <goodger@python.org>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing LaTeX.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline
|
|
||||||
|
|
||||||
description = ('Generates LaTeX documents from standalone reStructuredText '
|
|
||||||
'sources. '
|
|
||||||
'Reads from <source> (default is stdin) and writes to '
|
|
||||||
'<destination> (default is stdout). See '
|
|
||||||
'<http://docutils.sourceforge.net/docs/user/latex.html> for '
|
|
||||||
'the full reference.')
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='latex', description=description)
|
|
@ -1,26 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
|
|
||||||
# Author:
|
|
||||||
# Contact: grubert@users.sf.net
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
man.py
|
|
||||||
======
|
|
||||||
|
|
||||||
This module provides a simple command line interface that uses the
|
|
||||||
man page writer to output from ReStructuredText source.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import locale
|
|
||||||
try:
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
from docutils.writers import manpage
|
|
||||||
|
|
||||||
description = ("Generates plain unix manual documents. " + default_description)
|
|
||||||
|
|
||||||
publish_cmdline(writer=manpage.Writer(), description=description)
|
|
@ -1,30 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
|
|
||||||
# $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $
|
|
||||||
# Author: Dave Kuhlman <dkuhlman@rexx.com>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A front end to the Docutils Publisher, producing OpenOffice documents.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import sys
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline_to_binary, default_description
|
|
||||||
from docutils.writers.odf_odt import Writer, Reader
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates OpenDocument/OpenOffice/ODF documents from '
|
|
||||||
'standalone reStructuredText sources. ' + default_description)
|
|
||||||
|
|
||||||
|
|
||||||
writer = Writer()
|
|
||||||
reader = Reader()
|
|
||||||
output = publish_cmdline_to_binary(reader=reader, writer=writer,
|
|
||||||
description=description)
|
|
||||||
|
|
@ -1,67 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
|
|
||||||
# $Id: rst2odt_prepstyles.py 8346 2019-08-26 12:11:32Z milde $
|
|
||||||
# Author: Dave Kuhlman <dkuhlman@rexx.com>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
Fix a word-processor-generated styles.odt for odtwriter use: Drop page size
|
|
||||||
specifications from styles.xml in STYLE_FILE.odt.
|
|
||||||
"""
|
|
||||||
|
|
||||||
# Author: Michael Schutte <michi@uiae.at>
|
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from lxml import etree
|
|
||||||
import sys
|
|
||||||
import zipfile
|
|
||||||
from tempfile import mkstemp
|
|
||||||
import shutil
|
|
||||||
import os
|
|
||||||
|
|
||||||
NAMESPACES = {
|
|
||||||
"style": "urn:oasis:names:tc:opendocument:xmlns:style:1.0",
|
|
||||||
"fo": "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def prepstyle(filename):
|
|
||||||
|
|
||||||
zin = zipfile.ZipFile(filename)
|
|
||||||
styles = zin.read("styles.xml")
|
|
||||||
|
|
||||||
root = etree.fromstring(styles)
|
|
||||||
for el in root.xpath("//style:page-layout-properties",
|
|
||||||
namespaces=NAMESPACES):
|
|
||||||
for attr in el.attrib:
|
|
||||||
if attr.startswith("{%s}" % NAMESPACES["fo"]):
|
|
||||||
del el.attrib[attr]
|
|
||||||
|
|
||||||
tempname = mkstemp()
|
|
||||||
zout = zipfile.ZipFile(os.fdopen(tempname[0], "w"), "w",
|
|
||||||
zipfile.ZIP_DEFLATED)
|
|
||||||
|
|
||||||
for item in zin.infolist():
|
|
||||||
if item.filename == "styles.xml":
|
|
||||||
zout.writestr(item, etree.tostring(root))
|
|
||||||
else:
|
|
||||||
zout.writestr(item, zin.read(item.filename))
|
|
||||||
|
|
||||||
zout.close()
|
|
||||||
zin.close()
|
|
||||||
shutil.move(tempname[1], filename)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
args = sys.argv[1:]
|
|
||||||
if len(args) != 1:
|
|
||||||
print(__doc__, file=sys.stderr)
|
|
||||||
print("Usage: %s STYLE_FILE.odt\n" % sys.argv[0], file=sys.stderr)
|
|
||||||
sys.exit(1)
|
|
||||||
filename = args[0]
|
|
||||||
prepstyle(filename)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
@ -1,23 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
|
|
||||||
# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $
|
|
||||||
# Author: David Goodger <goodger@python.org>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing pseudo-XML.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates pseudo-XML from standalone reStructuredText '
|
|
||||||
'sources (for testing purposes). ' + default_description)
|
|
||||||
|
|
||||||
publish_cmdline(description=description)
|
|
@ -1,24 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
|
|
||||||
# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $
|
|
||||||
# Author: Chris Liechti <cliechti@gmx.net>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing HTML slides using
|
|
||||||
the S5 template system.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates S5 (X)HTML slideshow documents from standalone '
|
|
||||||
'reStructuredText sources. ' + default_description)
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='s5', description=description)
|
|
@ -1,27 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
|
|
||||||
# $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $
|
|
||||||
# Author: Guenter Milde
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline
|
|
||||||
|
|
||||||
description = ('Generates LaTeX documents from standalone reStructuredText '
|
|
||||||
'sources for compilation with the Unicode-aware TeX variants '
|
|
||||||
'XeLaTeX or LuaLaTeX. '
|
|
||||||
'Reads from <source> (default is stdin) and writes to '
|
|
||||||
'<destination> (default is stdout). See '
|
|
||||||
'<http://docutils.sourceforge.net/docs/user/latex.html> for '
|
|
||||||
'the full reference.')
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='xetex', description=description)
|
|
@ -1,23 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
|
|
||||||
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
|
|
||||||
# Author: David Goodger <goodger@python.org>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing Docutils XML.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates Docutils-native XML from standalone '
|
|
||||||
'reStructuredText sources. ' + default_description)
|
|
||||||
|
|
||||||
publish_cmdline(writer_name='xml', description=description)
|
|
@ -1,25 +0,0 @@
|
|||||||
#!C:\Users\Yuriy\PycharmProjects\access_controller\windows_venv\Scripts\python.exe
|
|
||||||
|
|
||||||
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
|
|
||||||
# Author: David Goodger <goodger@python.org>
|
|
||||||
# Copyright: This module has been placed in the public domain.
|
|
||||||
|
|
||||||
"""
|
|
||||||
A minimal front end to the Docutils Publisher, producing HTML from PEP
|
|
||||||
(Python Enhancement Proposal) documents.
|
|
||||||
"""
|
|
||||||
|
|
||||||
try:
|
|
||||||
import locale
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
from docutils.core import publish_cmdline, default_description
|
|
||||||
|
|
||||||
|
|
||||||
description = ('Generates (X)HTML from reStructuredText-format PEP files. '
|
|
||||||
+ default_description)
|
|
||||||
|
|
||||||
publish_cmdline(reader_name='pep', writer_name='pep_html',
|
|
||||||
description=description)
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +0,0 @@
|
|||||||
home = C:\Users\Yuriy\AppData\Local\Programs\Python\Python39
|
|
||||||
include-system-site-packages = false
|
|
||||||
version = 3.9.1
|
|
Loading…
x
Reference in New Issue
Block a user