Mercurial > repos > bcclaywell > argo_navis
comparison venv/lib/python2.7/site-packages/setuptools/utils.py @ 0:d67268158946 draft
planemo upload commit a3f181f5f126803c654b3a66dd4e83a48f7e203b
author | bcclaywell |
---|---|
date | Mon, 12 Oct 2015 17:43:33 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d67268158946 |
---|---|
1 import os | |
2 import os.path | |
3 | |
4 | |
5 def cs_path_exists(fspath): | |
6 if not os.path.exists(fspath): | |
7 return False | |
8 # make absolute so we always have a directory | |
9 abspath = os.path.abspath(fspath) | |
10 directory, filename = os.path.split(abspath) | |
11 return filename in os.listdir(directory) |