Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(1) | Call(0) | Derive(0) | Import(1)
def get_cpu_usage(): vbs_file = 'get_cpu_usage.vbs' vbs_path = path.join(LOCAL_DIR, vbs_file) popen = sp.Popen('cscript /nologo %s'%vbs_path, stdout=sp.PIPE, shell=True) popen.wait() result = popen.stdout.read() return '%s%%'%result.strip()
# -*- encoding: utf-8 -*- import sys if sys.platform.startswith('win'): from win import get_cpu_style, get_cpu_usage, get_mem_usage, get_ip