I trying to change the path where I located in a python3 script using a bash command.
I use this small code but it doesn't work:
import subprocess
args = ['cd', '/foo/bar/xxx']
subprocess.Popen(args)
I also try to use subprocess.call() and subprocess.run() but it doesn't change the path