python-rope / ropevim

vim mode that uses rope library to provide features like python refactorings and code-assists
GNU General Public License v2.0
245 stars 34 forks source link

os.path.samefile not available on Windows (Python 2.7) #65

Closed forzenheart closed 7 years ago

forzenheart commented 7 years ago

when i use gvim on windows7, ropevim.py: 232 os.path.samefile not available.

mcepl commented 7 years ago

Damn, you are right. Availability: Unix. OK, I will try to do something about it.

The problem is that although os.stat() exists on Windows as well, st_ino and st_dev (which is what samefile uses) are always zero all the way up to Python 3.3.

Whole discussion of this situation points to crazily complicated stuff, which I have no way how to test.

Let me see what I could do.

mcepl commented 7 years ago

Could you test this pull request, please?

forzenheart commented 7 years ago

ok