mirror of https://github.com/ConsenSys/mythril
parent
ac2811701a
commit
90964e55b0
@ -0,0 +1,13 @@ |
||||
from subprocess import check_output, CalledProcessError |
||||
|
||||
|
||||
def output_of(command, stderr=None): |
||||
""" |
||||
|
||||
:param command: |
||||
:return: |
||||
""" |
||||
try: |
||||
return check_output(command, shell=True, stderr=stderr).decode("UTF-8") |
||||
except CalledProcessError as exc: |
||||
return exc.output.decode("UTF-8") |
Loading…
Reference in new issue