diff options
-rwxr-xr-x | setuptools/command/easy_install.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 39afb653..774f0f21 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -76,6 +76,12 @@ def is_64bit(): def samefile(p1, p2): + """ + Determine if two paths reference the same file. + + Augments os.path.samefile to work on Windows and + suppresses errors if the path doesn't exist. + """ both_exist = os.path.exists(p1) and os.path.exists(p2) use_samefile = hasattr(os.path, 'samefile') and both_exist if use_samefile: |