I have Directory structure like this
projectfolder/fold1/fold2/fold3/script.py
now I\'m giving script.py a path as commandline argument of a fi
For Python3, you can use pathlib's resolve functionality to resolve symlinks and ..
components.
You need to have a Path object however it is very simple to do convert between str and Path.
I recommend for anyone using Python3 to drop os.path
and its messy long function names and stick to pathlib
Path objects.