Out of these maya/utils.py is the one that causes much pain when testing Pymel in Windows.
As of Python version < 3k, os.samefile has no implementation on Windows (primarily because os.stat.st_ino and os.stat.st_dev, which samefile's underlying os.samestat relies on won't return correct values on Windows).
In my local fork, I am doing a direct stat compare, which is also less than ideal. Need to have a samefile hack provided along with PyMEL so it continues functioning in Windows.
Some modules use os.samefile to check for same files, namely:
maya/utils.py pymel/util/path.py pymel/tools/mel2py/melparse.py
Out of these maya/utils.py is the one that causes much pain when testing Pymel in Windows.
As of Python version < 3k, os.samefile has no implementation on Windows (primarily because os.stat.st_ino and os.stat.st_dev, which samefile's underlying os.samestat relies on won't return correct values on Windows).