diff options
Diffstat (limited to 'modules/hardware.py')
-rwxr-xr-x | modules/hardware.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/hardware.py b/modules/hardware.py index 5366b78..50dd705 100755 --- a/modules/hardware.py +++ b/modules/hardware.py @@ -19,9 +19,6 @@ # other modules import sys -# hack: smolt is not installed in site-packages -sys.path.append("/usr/share/smolt/client") -import smolt # our modules import sub_process @@ -76,6 +73,13 @@ class HardwareModule(func_module.FuncModule): def hw_info(with_devices=True): + # this may fail if smolt is not installed. That's ok. hal_info will + # still work. + + # hack: smolt is not installed in site-packages + sys.path.append("/usr/share/smolt/client") + import smolt + hardware = smolt.Hardware() host = hardware.host |