Answers for "how to set pythonpath"

1

export pythonpath linux

export PYTHONPATH="$PWD/code"
Posted by: Guest on March-15-2021
1

save pythonpath

export PYTHONPATH="${PYTHONPATH}:/my/other/path"
Posted by: Guest on June-26-2020
1

edit path variable using python

app_path = os.path.join(root_path, 'other', 'dir', 'to', 'app')
os.environ["PATH"] += os.pathsep + app_path
Posted by: Guest on September-12-2020

Python Answers by Framework

Browse Popular Code Answers by Language