moved some python functions to vikit

This commit is contained in:
Christian Forster
2014-03-24 15:03:19 +01:00
parent b9a9dd7b7f
commit ea7b382a2b
-10
View File
@@ -1,10 +0,0 @@
#!/usr/bin/python
import subprocess, re
def getCpuInfo():
command = "cat /proc/cpuinfo"
all_info = subprocess.check_output(command, shell=True).strip()
for line in all_info.split("\n"):
if "model name" in line:
return re.sub( ".*model name.*:", "", line,1)