changeset 5789:e39062123c19

misc:binary_strip_p: add existance of file/dir to tests. Fixes installer build.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Wed, 14 Oct 2009 00:13:04 +0200
parents bdc1aa975290
children 1e3c7bd28d06
files gub/misc.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gub/misc.py	Wed Oct 14 00:12:19 2009 +0200
+++ b/gub/misc.py	Wed Oct 14 00:13:04 2009 +0200
@@ -402,6 +402,7 @@
     def predicate (file):
         return (os.path.basename (file) not in filter_out
                 and (os.path.splitext (file)[1] not in extension_filter_out)
+                and os.path.exists (file)
                 and not get_interpreter (file))
     return predicate