* Added some useful functions from my pw2g_bench_MnO.py scriptlet collection:
- wpylib.math.roundup() - wpylib.shell_tools.dirname2() * file_exists_nonempty() is moved to wpylib.shell_tools.
This commit is contained in:
@@ -81,10 +81,6 @@ def open_input_file(fname, superize=0):
|
||||
|
||||
# Miscellaneous functions
|
||||
|
||||
def file_exists_nonempty(fn):
|
||||
return os.path.isfile(fn) and os.stat(fn).st_size > 0
|
||||
|
||||
|
||||
|
||||
def glob_files(filespec):
|
||||
'''Processes a glob string, or does nothing (pass-on only) if an iterable object
|
||||
|
||||
Reference in New Issue
Block a user