Backlight: terminate init() after monkey patching

This commit is contained in:
hcpl 2016-10-26 04:19:25 +03:00
parent 285ba71ba0
commit 9c870d72b0

View File

@ -49,6 +49,8 @@ class Backlight(File):
if len(backlight_entries) == 0:
self.run = run_no_backlight
super().init()
return
self.base_path = backlight_entries[0]
self.has_xbacklight = shutil.which("xbacklight") is not None