NYU-Molecular-Pathology / snsxt

bioinformatics pipeline framework for data analysis
GNU General Public License v3.0
4 stars 3 forks source link

Return error code or process object from subprocess functions #3

Open stevekm opened 7 years ago

stevekm commented 7 years ago

Right now when Python subprocess is used to execute a shell command, nothing is typically returned.

Might be good to always return the error code, or the SubprocessCmd or process object completely. This would be good for error checking within the script to make sure the commands finished successfully

reference: https://github.com/NYU-Molecular-Pathology/util/blob/master/tools.py#L22