change pythonpath code example
Example 1: save pythonpath
export PYTHONPATH="${PYTHONPATH}:/my/other/path"
Example 2: edit path variable using python
app_path = os.path.join(root_path, 'other', 'dir', 'to', 'app')
os.environ["PATH"] += os.pathsep + app_path