diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-09-29 21:14:51 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-09-29 21:14:51 -0400 |
| commit | 626fa69fb0470710e870628afd0cb7ec0ba96ddf (patch) | |
| tree | befcacc09c560133266eb5a1757a45ea43d93453 /setuptools/utils.py | |
| parent | 96aed21b42121acde68dd6b3732c3fbae0903569 (diff) | |
| parent | 9e7f35fec4178dea678693cb768b6076d45e7ddd (diff) | |
| download | python-setuptools-git-626fa69fb0470710e870628afd0cb7ec0ba96ddf.tar.gz | |
Merge with 6.0.2
--HG--
branch : feature/issue-229
Diffstat (limited to 'setuptools/utils.py')
| -rw-r--r-- | setuptools/utils.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/setuptools/utils.py b/setuptools/utils.py new file mode 100644 index 00000000..91e4b87f --- /dev/null +++ b/setuptools/utils.py @@ -0,0 +1,11 @@ +import os +import os.path + + +def cs_path_exists(fspath): + if not os.path.exists(fspath): + return False + # make absolute so we always have a directory + abspath = os.path.abspath(fspath) + directory, filename = os.path.split(abspath) + return filename in os.listdir(directory)
\ No newline at end of file |
