mrparse.mr_util module

Created on 14 Dec 2018

@author: jmht

is_exe(fpath)[source]

Check if an executable exists

Parameters

fpath (str) – The path to the executable

Returns

Return type

bool

make_workdir(dir_name_stem='mrparse')[source]

Make a work directory rooted at run_dir and return its path

Parameters

dir_name_stem (str) – name to use as stem of working directory name

Returns

work_dir – The path to the working directory

Return type

str

now()[source]
run_cmd(cmd)[source]

Should replace with pyjob

Always set PYTHONPATH to null so processes don’t inherit our environment This needs some thinking about