From fbee8354739ecb45aa70345a7ee3a7b0584e6766 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Fri, 19 Dec 2008 01:30:32 +0000 Subject: use OS.system instead of commands.getstatusoutput --- (limited to 'common/Util/OS.py') diff --git a/common/Util/OS.py b/common/Util/OS.py new file mode 100644 index 0000000..6bea80b --- /dev/null +++ b/common/Util/OS.py @@ -0,0 +1,12 @@ +import commands +import logging + +def system(*args): + cmd = ' '.join(args) + logging.debug('[system] %s' % cmd) + + status = commands.getstatusoutput(cmd) + logging.debug('[system][out] %d: %s' % status) + + return status + -- cgit v0.9.1