I'd say this is a (windows)python bug.
Why bug?
I think this statement should be True
os.path.join(*os.path.dirname(os.path.abspath(__file__)).split(os.path.sep))==os.path.dirname(os.path.abspath(__file__))
But it is False
on windows machines.