From 7ff814d5ece9c636d78265a1130551f113d977f3 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sat, 28 Nov 2009 21:10:56 -0600 Subject: [PATCH] use os.path.lexists() so it doesn't fail on broken symlinks --- modules/catalyst/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/catalyst/util.py b/modules/catalyst/util.py index ddbb694c..37ace80c 100644 --- a/modules/catalyst/util.py +++ b/modules/catalyst/util.py @@ -228,7 +228,7 @@ def empty_dir(path): raise CatalystError("Could not empty directory '%s'" % (path,)) def create_symlink(src, dest, remove_existing=False): - if os.path.exists(dest): + if os.path.lexists(dest): if remove_existing: remove_path(dest) else: -- 2.26.2