This change adds a check for the existence of the hwmondir name file. This prevents the following error in my system:
Traceback (most recent call last):
File "run.py", line 23, in
wattman.main()
File "/home/$USER/WattmanGTK/WattmanGTK/wattman.py", line 150, in main
if open(hwmondir + folder + '/name').readline().rstrip() == 'amdgpu':
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/hwmon/hwmon3/name'
This error prevented the program from running.
It looks like hwmon3 is 'applesmc' so this could be a mac specific issue.
This change adds a check for the existence of the hwmondir name file. This prevents the following error in my system: Traceback (most recent call last): File "run.py", line 23, in
wattman.main()
File "/home/$USER/WattmanGTK/WattmanGTK/wattman.py", line 150, in main
if open(hwmondir + folder + '/name').readline().rstrip() == 'amdgpu':
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/hwmon/hwmon3/name'
This error prevented the program from running.
It looks like hwmon3 is 'applesmc' so this could be a mac specific issue.