Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
news
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sartika Aritonang
news
Commits
f9e1dafb
Commit
f9e1dafb
authored
May 29, 2020
by
Sartika Aritonang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete Activate.ps1
parent
e265e051
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
51 deletions
+0
-51
Activate.ps1
stbi/Lib/site-packages/Sqlparse/Activate.ps1
+0
-51
No files found.
stbi/Lib/site-packages/Sqlparse/Activate.ps1
deleted
100644 → 0
View file @
e265e051
function
global:deactivate
([
switch
]
$NonDestructive
)
{
# Revert to original values
if
(
Test-Path
function
:_OLD_VIRTUAL_PROMPT
)
{
copy-item
function
:_OLD_VIRTUAL_PROMPT
function
:prompt
remove-item
function
:_OLD_VIRTUAL_PROMPT
}
if
(
Test-Path env
:_OLD_VIRTUAL_PYTHONHOME
)
{
copy-item env
:_OLD_VIRTUAL_PYTHONHOME
env
:PYTHONHOME
remove-item env
:_OLD_VIRTUAL_PYTHONHOME
}
if
(
Test-Path env
:_OLD_VIRTUAL_PATH
)
{
copy-item env
:_OLD_VIRTUAL_PATH
env
:PATH
remove-item env
:_OLD_VIRTUAL_PATH
}
if
(
Test-Path env
:VIRTUAL_ENV
)
{
remove-item env
:VIRTUAL_ENV
}
if
(!
$NonDestructive
)
{
# Self destruct!
remove-item
function
:deactivate
}
}
deactivate -nondestructive
$env
:VIRTUAL_ENV
=
"E:\materi kuliah\Semester 8\STBI\news\stbi"
if
(!
$env
:VIRTUAL_ENV_DISABLE_PROMPT
)
{
# Set the prompt to include the env name
# Make sure _OLD_VIRTUAL_PROMPT is global
function
global:_OLD_VIRTUAL_PROMPT
{
""
}
copy-item
function
:prompt
function
:_OLD_VIRTUAL_PROMPT
function
global:prompt
{
Write-Host
-NoNewline -ForegroundColor Green
'(stbi) '
_OLD_VIRTUAL_PROMPT
}
}
# Clear PYTHONHOME
if
(
Test-Path env
:PYTHONHOME
)
{
copy-item env
:PYTHONHOME
env
:_OLD_VIRTUAL_PYTHONHOME
remove-item env
:PYTHONHOME
}
# Add the venv to the PATH
copy-item env
:PATH
env
:_OLD_VIRTUAL_PATH
$env
:PATH
=
"
$env
:VIRTUAL_ENV\Scripts;
$env
:PATH"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment