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:
parent
c0242ad55c
commit
6a1be5cf06
3 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
"""WizardKit: hw module init"""
|
||||
|
||||
from wk.hw import obj
|
||||
|
|
|
|||
|
|
@ -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 = []
|
||||
Loading…
Reference in a new issue