From 8a99492a2a5d2f2fb074d319355977159bb320b2 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 8 Jul 2009 10:36:30 -0400 Subject: [PATCH] Tolerate non-existing files in runalyzer-gather. --- bin/runalyzer-gather | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/runalyzer-gather b/bin/runalyzer-gather index 47c0e67..7c75e9f 100644 --- a/bin/runalyzer-gather +++ b/bin/runalyzer-gather @@ -354,7 +354,13 @@ def main(): sys.exit(1) outfile = args[0] - infiles = args[1:] + from os.path import exists + infiles = [fn for fn in args[1:] if exists(fn)] + not_found_files = [fn for fn in args[1:] if not exists(fn)] + if not_found_files: + print "Warning: The follwing files were not found and are being ignored:" + for fn in not_found_files: + print " ", fn # list of run features as {name: sql_type} fg = FeatureGatherer(options.dir_features, options.file_features) -- GitLab