bag.command module
Simplifying usage of the subprocess module of the standard library.
-
exception bag.command.CommandError(error_message, code, out='')[source]
Bases: Exception
-
bag.command.checked_execute(command, input='', shell=True, encoding='utf-8', accept_codes=[0])[source]
-
bag.command.execute(command, input='', shell=True, encoding='utf-8')[source]