File: example_normal.py

package info (click to toggle)
python-cpuinfo 9.0.0%2Bgit20221119-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 892 kB
  • sloc: python: 11,917; makefile: 74
file content (10 lines) | stat: -rw-r--r-- 171 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10

import sys

# Import cpuinfo.py from up one directory
sys.path.append('../cpuinfo')

if __name__ == '__main__':
	from cpuinfo import get_cpu_info

	print(get_cpu_info())