X-Git-Url: https://git.distorted.org.uk/~mdw/runlisp/blobdiff_plain/f74ba2bb507cfeadd5518d5468c7ab7281b581b7..25d898713dad330615f6347a9284bf8bff68ed11:/mdwsetup.py diff --git a/mdwsetup.py b/mdwsetup.py index a6ca3f4..94bce8a 100644 --- a/mdwsetup.py +++ b/mdwsetup.py @@ -59,10 +59,10 @@ class SubprocessFailure (Exception): me.file = file me.rc = rc def __str__(me): - if WIFEXITED(me.rc): - return '%s failed (rc = %d)' % (me.file, WEXITSTATUS(me.rc)) - elif WIFSIGNALED(me.rc): - return '%s died (signal %d)' % (me.file, WTERMSIG(me.rc)) + if OS.WIFEXITED(me.rc): + return '%s failed (rc = %d)' % (me.file, OS.WEXITSTATUS(me.rc)) + elif OS.WIFSIGNALED(me.rc): + return '%s died (signal %d)' % (me.file, OS.WTERMSIG(me.rc)) else: return '%s died inexplicably' % (me.file)