openmedialibrary_platform_w.../Lib/site-packages/setuptools/utils.py

11 lines
293 B
Python
Raw Normal View History

2016-01-31 14:44:46 +00:00
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)