openmedialibrary_platform/Linux_i686/lib/python3.4/site-packages/setuptools/utils.py
2014-09-30 21:25:01 +02:00

11 lines
No EOL
293 B
Python

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)