diff --git a/TODO b/TODO index cac8f49..ac47dec 100644 --- a/TODO +++ b/TODO @@ -47,7 +47,7 @@ - A new directive, .notify, tells tsshbatch to print an informative message from within a command file. This is a runtime activity - and is helpful, for example when tracking progress of a long + and is helpful, for example, when tracking progress of a long command file. [CHANGES] @@ -60,7 +60,7 @@ files on the commandline. - .include targets (file name specifications) may now reference - previously-define variables. + previously defined variables. [BUG FIXES] @@ -71,7 +71,7 @@ TODO ---- - - Protect path walk from files/dirs that cannot be opened. + - Future diff --git a/tsshbatch.py b/tsshbatch.py index 3c2b63a..afbd767 100755 --- a/tsshbatch.py +++ b/tsshbatch.py @@ -14,7 +14,7 @@ # Version Information - Overwritten by makefile during release process ##### -GITID = 'a0fb3b2 tundra Fri Sep 30 19:46:28 2016 -0500' +GITID = 'b43839f tundra Mon Oct 10 22:29:35 2016 -0500' VERSION = '1.311' @@ -200,6 +200,7 @@ iCMDFILES = "Command Files:\n==============\n" iHOSTFILES = "Host Files:\n===========\n" iNOCFGFILE = "Warning: Cannot Open Configuration File '%s'! Continuing Anyway ..." +iNOPATH = "Warning: Cannot Open Path '%s'!" iTXFILE = "Writing %s To %s ..." @@ -282,7 +283,12 @@ if p: if not p.endswith(PATHSEP): p += PATHSEP - found += [ p+x for x in os.listdir(p)] + try: + found += [ p+x for x in os.listdir(p)] + + except: + if NOISELEVEL not in (QUIET, SILENT): + PrintStderr(iNOPATH % p) return found diff --git a/tsshbatch.rst b/tsshbatch.rst index da2f9d1..cca3fbb 100644 --- a/tsshbatch.rst +++ b/tsshbatch.rst @@ -1345,7 +1345,7 @@ :: - $Id: 'a0fb3b2 tundra Fri Sep 30 19:46:28 2016 -0500' + $Id: 'b43839f tundra Mon Oct 10 22:29:35 2016 -0500' This document was produced with ``emacs``, ``RestructuredText``, and ``TeX Live``. diff --git a/version b/version index 27b7bea..117ddda 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.311 +1.312