Moved wk.obj to wk.hw.obj

* Done because the main classes are CpuRam() and Disk()
  * The rest are there for uniformity while working with HW objects
This commit is contained in:
2Shirt 2019-10-28 17:46:17 -06:00
parent c0242ad55c
commit 6a1be5cf06
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
3 changed files with 5 additions and 2 deletions

View file

@ -10,7 +10,6 @@ from wk import io
from wk import kit
from wk import log
from wk import net
from wk import obj
from wk import os
from wk import std
from wk import sw

View file

@ -1 +1,3 @@
"""WizardKit: hw module init"""
from wk.hw import obj

View file

@ -1,4 +1,4 @@
"""WizardKit: Objects."""
"""WizardKit: Hardware objects (mostly)."""
# vim: sts=2 sw=2 ts=2
import logging
@ -298,6 +298,7 @@ def get_disk_serial_macos(path):
"""Get disk serial using system_profiler, returns str."""
serial = 'Unknown Serial'
# TODO: Make it real
str(path)
return serial
@ -329,6 +330,7 @@ def get_ram_list_linux():
# Save details
return dimm_list
def get_ram_list_macos():
"""Get RAM list using system_profiler."""
dimm_list = []