Answers for "change pythonpath"

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