FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
example-code-2e/export_python_path.sh at master · ahvar/example-code-2e · GitHub
ahvar
/
example-code-2e
Public
forked from
fluentpython/example-code-2e
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
example-code-2e
/
export_python_path.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
11 lines (7 loc) · 489 Bytes
Breadcrumbs
example-code-2e
/
export_python_path.sh
Copy path
File metadata and controls
executable file
·
11 lines (7 loc) · 489 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
#!
/bin/bash
#
run this script to set PYTHONPATH of the python interpreter in your virtual environment
#
Get the root directory
PROJECT_ROOT=
"
$(
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
"
&&
pwd
)
"
#
Construct PYTHONPATH dynamically based on the project root
export
PYTHONPATH=
"
$PROJECT_ROOT
:
$PROJECT_ROOT
/nineteen_concurrency:
$PROJECT_ROOT
/nineteen_concurrency/av:
$PROJECT_ROOT
/nineteen_concurrency/primes/:
$PROJECT_ROOT
/nineteen_concurrency/primes/av
"
echo
"
PYTHONPATH set to:
$PYTHONPATH
"
Back
|
FazBrowse Home
|
New Git URL