Commit 5305d500 authored by Reinout van Rees's avatar Reinout van Rees

using .exists instead of .isdir as it is used everywhere else in the code

parent 4a398a3c
...@@ -385,7 +385,7 @@ class Buildout(DictMixin): ...@@ -385,7 +385,7 @@ class Buildout(DictMixin):
os.mkdir(download_cache) os.mkdir(download_cache)
# Actually, we want to use a subdirectory in there called 'dist'. # Actually, we want to use a subdirectory in there called 'dist'.
download_cache = os.path.join(download_cache, 'dist') download_cache = os.path.join(download_cache, 'dist')
if not os.path.isdir(download_cache): if not os.path.exists(download_cache):
os.mkdir(download_cache) os.mkdir(download_cache)
zc.buildout.easy_install.download_cache(download_cache) zc.buildout.easy_install.download_cache(download_cache)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment