Oct-20-2018, 10:00 AM
(Oct-20-2018, 09:53 AM)alinaveed786 Wrote: any idea why I m not able to get cd via subprocess.runIt is because
subprocess.run('cd $ORACLE_HOME', shell=True)
starts a new shell process and changes directory in this spawned process. It doesn't change the current directory of the calling process. For this you need to call os.chdir()