diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-05-21 10:34:46 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-05-21 10:34:46 -0400 |
| commit | c18482b4a81e6bd7b46290688451d7b7bcead99c (patch) | |
| tree | 71f402bfa427cea46fbd320cc2caf9dda6f1fe76 | |
| parent | c3a21a08b16af1eb1e2b47972ecdab6df3d79b7b (diff) | |
| download | python-setuptools-git-c18482b4a81e6bd7b46290688451d7b7bcead99c.tar.gz | |
Add docstring
| -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: |
