def samefile(file1, file2):<EOL>
if hasattr(os.path, '<STR_LIT>'):<EOL><INDENT>return os.path.samefile(file1, file2)<EOL><DEDENT>else:<EOL><INDENT>path1 = os.path.normcase(os.path.abspath(file1))<EOL>path2 = os.path.normcase(os.path.abspath(file2))<EOL>return path1 == path2<EOL><DEDENT>
Provide an alternative for os.path.samefile on Windows/Python2