Deniz Bozyigit <deniz...@gmail.com> added the comment:

Hi, thank you for looking into this. I'm aware that the shown patch is not the 
ideal solution and a mere fix to get my jupyter operational. 

An indication on a workable solution could be the _samefile function in shutil 
that wraps os.path.samefile:

def _samefile(src, dst):
    # Macintosh, Unix.
    if hasattr(os.path, 'samefile'):
        try:
            return os.path.samefile(src, dst)
        except OSError:
            return False

    # All other platforms: check for same pathname.
    return (os.path.normcase(os.path.abspath(src)) ==
            os.path.normcase(os.path.abspath(dst)))


I understand that the implicit platform differentiation that is done here (see 
the comment line) is not valid anymore since os.path.samefile is now available 
on windows systems. It seems that for a windows system the here implemented 
file name comparison could be workable (even moving it into os.path.samefile?), 
if the platform is identified correctly.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33935>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to