I have a bunch of python scripts. One of them installs software (subversion) that requires it's path to be added to $PATH. After it is installed, I want the next script to use the software. If I run
export PATH=/opt/subversion/bin:$PATH in bash between the first and second script, all is ok. But if I add
os.system( 'export PATH=/opt/subversion/bin:$PATH' ) as the last command of the first script (that installs subversion),
$PATH remains unaltered after it exits.
Is it any way to change $PATH from within python script so it will remain changed after the script finishes (inside single bash session, of course, I know about