I like to do something like this in python or bash, where the program transform the given file path and move the current shell.
ulka:~/scc/utils$ python prog.py some_path1
ulka:some_path2$
Here
some_path1 -> prog.py -> some_path2
I tried with subprocess.call or os.chdir, but it's not work, any idea will be appreciated.