SilentGhost added the comment:
It behaves exactly as described in documentation, the only thing I could
suggest is to re-read the following for details:
https://docs.python.org/3/library/os.path.html#os.path.split
--
nosy: +SilentGhost
resolution: -> not a bug
stage: -> resolved
stat
New submission from Sagar Kar:
In [108]: os.mkdir('newdir') # make new dir
In [140]: p = os.path.abspath('newdir')
In [141]: p
Out[141]:
'/media/sagarkar10/sdrive/programing/python/SciPy/scipy-notebook/newdir'
## here 'newdir' is also a directory with a file inside
In [143]: os.path.dirname(p