FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
labstack-python/fix_virtualenv at master · labstack/labstack-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
labstack
/
labstack-python
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
8
Code
Issues
2
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
labstack-python
/
fix_virtualenv
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (14 loc) · 494 Bytes
Breadcrumbs
labstack-python
/
fix_virtualenv
Copy path
File metadata and controls
15 lines (14 loc) · 494 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!
/usr/bin/env bash
ENV_PATH=
"
$(
dirname
"
$(
dirname
"
$(
which pip
)
"
)
"
)
"
SYSTEM_VIRTUALENV=
"
$(
which -a virtualenv
|
tail -1
)
"
echo
"
Ensure the root of current virtualenv:
"
echo
"
$ENV_PATH
"
read
-p
"
‼️ Say no if you are not sure (y/N)
"
-n 1 -r
echo
if
[[
$REPLY
=~
^[Yy]$ ]]
;
then
echo
"
♻️ Removing old symbolic links......
"
find
"
$ENV_PATH
"
-type l -delete -print
echo
"
💫 Creating new symbolic links......
"
$SYSTEM_VIRTUALENV
"
$ENV_PATH
"
echo
"
🎉 Done!
"
fi
Back
|
FazBrowse Home
|
New Git URL