Re:Dstat project ended due to RedHat replacing it with its o...
by user5994461 on Sunday May 26, 2019 @08:36AM
(#20014603)
os.path.realpath(__file__)
That will give you the absolute path of the current python script, dereferencing any symlink and the .. notation.
You're right though, I didn't see the issue was still there. The home directory should also not be there either. I think I looked at this too hastily but now I'm confused too.