Martin A. Brown
ca43130a6d
spit out the contents of the STDERR, STDOUT and executed script if failure
2016-02-26 11:24:42 -08:00
Martin A. Brown
44fc44d15a
remove logging logic from utils
2016-02-25 12:29:12 -08:00
Martin A. Brown
7db6bb842e
add an asterisk for log readers
2016-02-23 22:44:39 -08:00
Martin A. Brown
8c69e05f94
beefing up some testing for new functions
2016-02-23 13:10:10 -08:00
Martin A. Brown
6ad64ea0e0
add an arg_isfile
2016-02-23 12:18:46 -08:00
Martin A. Brown
6c4fd88944
adding arg_* handlers; fix FD leakage in execute
...
fix FD leakage in function execute: must close stdout and stderr if
execute opens them (process logging in per-document logdir)
add functions arg_isloglevel, arg_isdirectory and arg_isexecutable
2016-02-23 11:02:36 -08:00
Martin A. Brown
b6edf39aeb
try the loglevel before using it
2016-02-22 17:46:41 -08:00
Martin A. Brown
f6eedfcb7b
flesh out CLI options and add --loglevel option
2016-02-22 17:10:45 -08:00
Martin A. Brown
0a32e87dfc
moving isdirectory into utils
2016-02-22 13:04:03 -08:00
Martin A. Brown
468f0f6317
adding firstfoundfile function
2016-02-22 12:32:16 -08:00
Martin A. Brown
f200c0efc2
add function stem_and_ext to the utils
2016-02-19 00:54:16 -08:00
Martin A. Brown
f04b2dfbd0
pep8 fix
2016-02-18 23:07:14 -08:00
Martin A. Brown
1578e282cc
ensure that statfiles includes directories
...
statfiles was not including directories; it does now
2016-02-18 21:55:56 -08:00
Martin A. Brown
88f518ede7
add docstrings and text to utils functions
2016-02-18 17:23:26 -08:00
Martin A. Brown
809ddc545b
adding # -*- coding: utf8 -*-
2016-02-18 13:25:02 -08:00
Martin A. Brown
62198e5973
in execute, before Popen, ensure cmd[0] has +x
...
rename is_executable() to isexecutable()
adjust testing code to match change to execute()
2016-02-18 09:13:46 -08:00
Martin A. Brown
2550047d23
pep8/pyflakes corrections
2016-02-17 19:38:27 -08:00
Martin A. Brown
bc810dd36c
deal with the ENOENT problem in statfiles()
2016-02-17 18:16:20 -08:00
Martin A. Brown
46edc205e0
factor out the call to os.stat(); broken links
2016-02-17 11:31:08 -08:00
Martin A. Brown
515595cac9
improve statfiles, deprecate ill-conceived fileset
...
statfiles now returns a dict() of statinfo and can handle relative paths
2016-02-17 11:18:47 -08:00
Martin A. Brown
f72583fca6
improve and generalize statfiles and getfileset
...
statfiles is the heavy lifter; call os.stat() while walking the directory
simplify getfileset; use the keys returned in the statinfo dict()
2016-02-17 10:17:19 -08:00
Martin A. Brown
6e3362b9aa
a bunch of filesystem stat()ing functions
2016-02-16 23:42:22 -08:00
Martin A. Brown
9845e90a39
adding testing for execute and new function getfileset
2016-02-16 19:52:07 -08:00
Martin A. Brown
73305ca97f
adding function execute() to shell out
2016-02-15 14:03:56 -08:00
Martin A. Brown
f76aa736e7
when calling type(), the word type is already present
2016-02-12 23:00:54 -08:00
Martin A. Brown
9a75657c1e
be more like Python3
2016-02-12 13:24:09 -08:00
Martin A. Brown
a74bcb645e
makefh and which functions in utils.py
2016-02-12 10:31:50 -08:00
Martin A. Brown
627e2ff636
changing to __future__ (consistency across project)
2016-02-11 11:28:38 -08:00
Martin A. Brown
701657e54b
initial commit
2016-02-10 19:22:23 -08:00