Author: waldi Date: Sat Mar 8 22:03:13 2008 New Revision: 10751 Log: lib/dkt/support/system.py: Add.
Added: people/waldi/dkt/lib/dkt/support/system.py Added: people/waldi/dkt/lib/dkt/support/system.py ============================================================================== --- (empty file) +++ people/waldi/dkt/lib/dkt/support/system.py Sat Mar 8 22:03:13 2008 @@ -0,0 +1,10 @@ +def _architecture(): + import os + f = os.popen('dpkg --print-architecture') + ret = f.readline().strip() + if f.close(): + raise RuntimeError + return ret + +architecture = _architecture() + _______________________________________________ Kernel-svn-changes mailing list Kernel-svn-changes@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/kernel-svn-changes